remove redux from action menu

This commit is contained in:
Alex Holliday committed 2025-06-13 09:16:07 +08:00
1 parent 09b7dc8401
commit a93edc1131
2 files changed
+18 -25

No files matched your search

+2 -1
View File
@@ -33,12 +33,13 @@ const useSaveSettings = () => {
const saveSettings = async (settings) => {
setIsLoading(true);
try {
await networkService.updateAppSettings({ settings });
const settingsResponse = await networkService.updateAppSettings({ settings });
if (settings.checkTTL) {
await networkService.updateChecksTTL({
ttl: settings.checkTTL,
});
}
console.log({ settingsResponse });
createToast({ body: t("settingsSuccessSaved") });
} catch (error) {
createToast({ body: t("settingsFailedToSave") });