Skip to content

Commit 0942db3

Browse files
committed
chore: update package-lock.json
1 parent d5fba39 commit 0942db3

File tree

2 files changed

+5080
-1263
lines changed

2 files changed

+5080
-1263
lines changed

components/editor/color-selector-popover.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,10 @@ export function ColorSelectorPopover({ currentColor, onChange }: ColorSelectorPo
4343
[setColorSelectorTab]
4444
);
4545

46+
const toHex = (c: string) => formatHex(parse(c));
4647
const isColorSelected = useCallback(
4748
(color: string) => {
4849
try {
49-
const toHex = (c: string) => formatHex(parse(c));
50-
5150
return toHex(currentColor) === toHex(color);
5251
} catch {
5352
return currentColor === color;

0 commit comments

Comments
 (0)