diff --git a/src/components/ButtonIconCycle.tsx b/src/components/ButtonIconCycle.tsx index 1159a1f42..ff1a1a047 100644 --- a/src/components/ButtonIconCycle.tsx +++ b/src/components/ButtonIconCycle.tsx @@ -14,11 +14,11 @@ export const ButtonIconCycle = ({ }) => { const current = options.find((op) => op.value === value); - function cycle() { + const cycle = () => { const index = options.indexOf(current!); const next = (index + 1) % options.length; onChange(options[next].value); - } + }; return (