Skip to content

Commit

Permalink
Update use-settings-logic.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
kof committed Mar 1, 2023
1 parent ecfac74 commit 04dee8f
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const useSettingsLogic = ({
const changes = useRef<SettingUpdate>({});

const setLabel = (value: SettingUpdate[keyof SettingUpdate]) => {
// Empty string should be replaced with `undefined` so that we can render default label
changes.current.label = value || undefined;
};

Expand Down

0 comments on commit 04dee8f

Please sign in to comment.