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

refactor: use prev value

parent c9525161
Branches
Tags
1 merge request!1Main
Pipeline #479185 failed
...@@ -41,7 +41,7 @@ export default function ColorSelector({label, onChange, value, enableAlpha = tru ...@@ -41,7 +41,7 @@ export default function ColorSelector({label, onChange, value, enableAlpha = tru
width: '100%' width: '100%'
}} }}
onClick={() => { onClick={() => {
setIsPopupActive(!isPopupActive) setIsPopupActive((isPopupActive) => !isPopupActive)
}} }}
></div> ></div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment