Correcting bug in prev keyboard shortcut.

This commit is contained in:
David Jay
2017-03-03 12:52:20 -05:00
parent 3ecb93365a
commit 45208b096f
@@ -36,7 +36,7 @@ class ModerationContainer extends Component {
({...prevState, selectedIndex: prevState.selectedIndex + 1}))
);
key('k', () => this.setState(prevState =>
({...prevState, selectedIndex: prevState.selectedIndex > 0 ? prevState.selectedIndex + 1 : selectedIndex}))
({...prevState, selectedIndex: prevState.selectedIndex > 0 ? prevState.selectedIndex - 1 : selectedIndex}))
);
key('r', () => this.moderate(false));
key('t', () => this.moderate(true));