Skip to content

Commit

Permalink
fix: fix condition to use default settings
Browse files Browse the repository at this point in the history
  • Loading branch information
rayacers committed Mar 9, 2023
1 parent 666c544 commit e0ff7da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/item/settings/ItemSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const ItemSettings: FC<Props> = ({ item }) => {
id={SETTINGS_SAVE_ACTIONS_TOGGLE_ID}
onChange={(e) => handleOnToggle(e, 'enableSaveActions')}
checked={
settingLocal?.enableSaveActions || DEFAULT_SAVE_ACTIONS_SETTING
settingLocal?.enableSaveActions ?? DEFAULT_SAVE_ACTIONS_SETTING
}
color="primary"
disabled
Expand Down
2 changes: 1 addition & 1 deletion src/components/member/MemberProfileScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ const MemberProfileScreen = (): JSX.Element => {
id={MEMBER_PROFILE_SAVE_ACTIONS_TOGGLE_ID}
onChange={handleOnToggle}
checked={
member.extra?.enableSaveActions ||
member.extra?.enableSaveActions ??
DEFAULT_MEMBER_PROFILE_SAVE_ACTIONS_SETTING
}
color="primary"
Expand Down

0 comments on commit e0ff7da

Please sign in to comment.