Skip to content

Commit

Permalink
PROD-7433 - Use yoda condition and fixed some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jitendrabanjara1991 committed May 17, 2024
1 parent fdda04f commit 4fe5b38
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ window.bp = window.bp || {};
}

// Show Hide Schedule post button according to group privacy.
if( 'group' === activity_data.privacy ) {
if ( 'group' === activity_data.privacy ) {
var schedule_allowed = $( '#whats-new-form' ).find( '#bp-item-opt-' + activity_data.item_id ).data( 'allow-schedule-post' );

if ( undefined !== typeof schedule_allowed && 'enabled' === schedule_allowed ) {
Expand Down Expand Up @@ -3917,7 +3917,7 @@ window.bp = window.bp || {};
if ( undefined !== typeof schedule_allowed && 'enabled' === schedule_allowed ) {
whats_new_form.find( '#bb-schedule-posts' ).show();
Backbone.trigger( 'cleanFeedBack' );
} else if( this.model.attributes.activity_action_type === 'scheduled' ) {
} else if ( 'scheduled' === this.model.attributes.activity_action_type ) {
// Reset the schedule data.
this.model.set( 'activity_action_type', null );
this.model.set( 'activity_schedule_date_raw', null );
Expand Down

0 comments on commit 4fe5b38

Please sign in to comment.