From 9f4f3794b049d3286251bf53be824c8af3f10125 Mon Sep 17 00:00:00 2001 From: ajnart Date: Mon, 15 May 2023 16:24:05 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20small=20bug=20when=20delet?= =?UTF-8?q?ing=20a=20config?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It would always return error previously. That has been fixed. --- src/components/Settings/Common/Config/ConfigActions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Settings/Common/Config/ConfigActions.tsx b/src/components/Settings/Common/Config/ConfigActions.tsx index 6ff6ac4db..abf3bdfcc 100644 --- a/src/components/Settings/Common/Config/ConfigActions.tsx +++ b/src/components/Settings/Common/Config/ConfigActions.tsx @@ -63,7 +63,7 @@ export default function ConfigActions() { onConfirm: async () => { const response = await mutateAsync(); - if (response.message) { + if (response.error) { showNotification({ title: t('buttons.delete.notifications.deleteFailedDefaultConfig.title'), message: t('buttons.delete.notifications.deleteFailedDefaultConfig.message'),