File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 34553455 else if ( text === "Delete" ) return this . post . canDelete ( true ) ;
34563456 return true ;
34573457 } ) . map ( ( [ text , cacheKey ] ) => {
3458- const selected = Store . config . default [ cacheKey ] && ( text === "Leave comment" ? Boolean ( comments ) : true ) ;
3458+ const selected = Store . config . default [ cacheKey ] && ( text === "Leave comment" ? ! comments : true ) ;
34593459 const idified = text . toLowerCase ( ) . replace ( " " , "-" ) ;
34603460 const id = `advanced-flagging-${ idified } -checkbox-${ this . post . id } ` ;
34613461 return {
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ export class Popover {
167167 const selected = Store . config . default [ cacheKey ]
168168 // extra requirement for the leave comment option:
169169 // there shouldn't be any comments below the post
170- && ( text === 'Leave comment' ? Boolean ( comments ) : true ) ;
170+ && ( text === 'Leave comment' ? ! comments : true ) ;
171171
172172 const idified = text . toLowerCase ( ) . replace ( ' ' , '-' ) ;
173173 const id = `advanced-flagging-${ idified } -checkbox-${ this . post . id } ` ;
You can’t perform that action at this time.
0 commit comments