Skip to content

Commit

Permalink
fix: added settings name
Browse files Browse the repository at this point in the history
  • Loading branch information
mishramonalisha76 committed Mar 15, 2024
1 parent 4026d87 commit 659642f
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ export const SettingsComponent: React.FC<ISettingsComponentProps> = (
{(setting.type == 2 || setting.type == 1) && (
<ToggleInput
id={`toggle${setting.type}${index}`}
labelHeading={`${
setting.type == 1 ? 'Boolean' : 'Range'
} Setting`}
labelHeading={`${setting?.description ||
( setting.type == 1 ? 'Boolean Setting' : 'Range Setting' )
} `}
checked={setting?.userPreferance?.enabled || false}
onToggle={() => {
handleToggleChange(index);
Expand Down

0 comments on commit 659642f

Please sign in to comment.