fix(ui): fix canvas color picker when value is zero

good ol' zero is false-y
This commit is contained in:
psychedelicious 2023-10-20 13:58:53 +11:00 committed by Kent Keirsey
parent dcd11327c1
commit b7f63a4065

View File

@ -37,7 +37,12 @@ const useColorPicker = () => {
1
).data;
if (!(a && r && g && b)) {
if (
r === undefined ||
g === undefined ||
b === undefined ||
a === undefined
) {
return;
}