remove redux from action menu
This commit is contained in:
1 parent
09b7dc8401
commit
a93edc1131
2 files changed
+18
-25
No files matched your search
@@ -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") });
|
||||
|
||||
Reference in new issue
Block a user