Skip to content

Commit

Permalink
fix: in customize theme, move anchor after saving color then switch t…
Browse files Browse the repository at this point in the history
…o another type will make the color you save update
  • Loading branch information
chunibyocola committed Jul 13, 2021
1 parent de8649a commit d39e83f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const CustomizeBoardOptions: React.FC<CustomizeBoardOptionsProps> = ({ styleVars
}, [styleVars, updateCallback]);

const handleColorClick = useCallback((targetColor, offsetColor) => {
!changing.saved && changing.targetColor && updateColor(changing.targetColor, changing.offsetColor);
changing.targetColor && changing.offsetColor && updateColor(changing.targetColor, changing.offsetColor);

setChanging({ targetColor, saved: false, offsetColor });
}, [changing, updateColor]);
Expand Down

0 comments on commit d39e83f

Please sign in to comment.