Fix fav/boosts hotkeys not working on detailed statuses (#9006)

signup-info-prompt
ThibG 2018-10-18 19:52:00 +02:00 committed by Eugen Rochko
parent f8c1b32541
commit 007f7690fa
1 changed files with 1 additions and 1 deletions

View File

@ -181,7 +181,7 @@ 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 }));