Fix the connected tracker modal not having it's config saved (#896)

This commit is contained in:
Uriel authored and GitHub committed 2023-11-12 00:27:12 -03:00
1 parent 59863fa7f3
commit 751c2e2f3b
1 file changed
+5
@@ -28,6 +28,7 @@ interface InterfaceSettingsForm {
watchNewDevices: boolean;
feedbackSound: boolean;
feedbackSoundVolume: number;
connectedTrackersWarning: boolean;
};
}
@@ -49,6 +50,9 @@ export function InterfaceSettings() {
feedbackSound: config?.feedbackSound ?? defaultConfig.feedbackSound,
feedbackSoundVolume:
config?.feedbackSoundVolume ?? defaultConfig.feedbackSoundVolume,
connectedTrackersWarning:
config?.connectedTrackersWarning ??
defaultConfig.connectedTrackersWarning,
},
},
});
@@ -62,6 +66,7 @@ export function InterfaceSettings() {
theme: values.appearance.theme,
fonts: values.appearance.fonts.split(','),
textSize: values.appearance.textSize,
connectedTrackersWarning: values.notifications.connectedTrackersWarning,
});
};