Skip to content

Commit

Permalink
fix(hex-control-buttons): corrected state update function usage
Browse files Browse the repository at this point in the history
  • Loading branch information
hirotomoyamada committed Aug 15, 2024
1 parent 437b2e8 commit ca5690b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/palettes/[uuid]/hex-control-buttons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ const EditButton: FC<EditButtonProps> = memo(
}

useUpdateEffect(() => {
setValue(name)
setName(name)
}, [name])

return (
Expand Down

0 comments on commit ca5690b

Please sign in to comment.