From: Daniel Karbach Date: Tue, 26 Mar 2024 13:04:00 +0000 (+0100) Subject: fix manual heart pieces X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=c56ab0725b926af522285d96a22f998f4f7c0c40;p=alttp.git fix manual heart pieces --- diff --git a/resources/js/components/tracker/ToggleIcon.js b/resources/js/components/tracker/ToggleIcon.js index da1a181..3966506 100644 --- a/resources/js/components/tracker/ToggleIcon.js +++ b/resources/js/components/tracker/ToggleIcon.js @@ -205,10 +205,10 @@ ToggleIcon.modulusController = ctrl => ({ getActive: (state, icons) => icons[(state[ctrl] || 0) % icons.length], getDefault: firstIcon, handlePrimary: (state, setState, icons) => { - setState(increment(icons[0], icons.length)); + setState(increment(ctrl, icons.length)); }, handleSecondary: (state, setState, icons) => { - setState(decrement(icons[0], icons.length)); + setState(decrement(ctrl, icons.length)); }, });