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
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
......@@ -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.
Please register or to comment