Fix fav/boosts hotkeys not working on detailed statuses
This commit is contained in:
		
							parent
							
								
									8a87a1cda4
								
							
						
					
					
						commit
						a8e896af12
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -127,7 +127,7 @@ export default class Status extends ImmutablePureComponent { | |||
|     if (status.get('favourited')) { | ||||
|       this.props.dispatch(unfavourite(status)); | ||||
|     } else { | ||||
|       if (e.shiftKey || !favouriteModal) { | ||||
|       if ((e && e.shiftKey) || !favouriteModal) { | ||||
|         this.handleModalFavourite(status); | ||||
|       } else { | ||||
|         this.props.dispatch(openModal('FAVOURITE', { status, onFavourite: this.handleModalFavourite })); | ||||
|  | @ -164,7 +164,7 @@ export default class Status extends ImmutablePureComponent { | |||
|     if (status.get('reblogged')) { | ||||
|       this.props.dispatch(unreblog(status)); | ||||
|     } else { | ||||
|       if (e.shiftKey || !boostModal) { | ||||
|       if ((e && e.shiftKey) || !boostModal) { | ||||
|         this.handleModalReblog(status); | ||||
|       } else { | ||||
|         this.props.dispatch(openModal('BOOST', { status, onReblog: this.handleModalReblog })); | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue