From f840b16423842c5cb3506af56d5d2541f042f504 Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Sun, 22 Aug 2021 17:06:24 +1200 Subject: [PATCH] Adding play position to deps --- src/js/components/Hotkeys.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/js/components/Hotkeys.js b/src/js/components/Hotkeys.js index 7d77b161..c31d56ea 100755 --- a/src/js/components/Hotkeys.js +++ b/src/js/components/Hotkeys.js @@ -132,7 +132,7 @@ const Hotkeys = () => { dispatch(mopidyActions.setTimePosition(new_position)); dispatch(uiActions.createNotification({ content: 'fast_rewind', type: 'shortcut' })); }, - })); + }), {}, [play_time_position]); useHotkeys('f', (e) => prepare({ e, @@ -141,7 +141,7 @@ const Hotkeys = () => { dispatch(mopidyActions.setTimePosition(play_time_position + 30000)); dispatch(uiActions.createNotification({ content: 'fast_forward', type: 'shortcut' })); }, - })); + }), {}, [play_time_position]); useHotkeys(',', (e) => prepare({ e,