Skip to content
Snippets Groups Projects
Commit 1c6aed01 authored by Eryk Mika's avatar Eryk Mika
Browse files

refactor: use prev value

parent c9525161
No related branches found
No related tags found
1 merge request!1Main
Pipeline #479185 failed with stages
in 4 seconds
......@@ -41,7 +41,7 @@ export default function ColorSelector({label, onChange, value, enableAlpha = tru
width: '100%'
}}
onClick={() => {
setIsPopupActive(!isPopupActive)
setIsPopupActive((isPopupActive) => !isPopupActive)
}}
></div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment