From c56ab0725b926af522285d96a22f998f4f7c0c40 Mon Sep 17 00:00:00 2001 From: Daniel Karbach Date: Tue, 26 Mar 2024 14:04:00 +0100 Subject: [PATCH] fix manual heart pieces --- resources/js/components/tracker/ToggleIcon.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)); }, }); -- 2.39.2