From f64481369c8e98f786e0fcf8e9b7a722f3e85327 Mon Sep 17 00:00:00 2001 From: Ivan Savoskin Date: Fri, 27 Sep 2024 01:36:13 +0300 Subject: [PATCH] Fixed a problem when enabling notifications about a commission with an incorrectly set fee border --- src/popup/context/WithMainContext.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/popup/context/WithMainContext.tsx b/src/popup/context/WithMainContext.tsx index 5709d2c..f67f20c 100644 --- a/src/popup/context/WithMainContext.tsx +++ b/src/popup/context/WithMainContext.tsx @@ -47,7 +47,8 @@ export default function WithMainContext({ children }: PropsWithChildren) { if (feeNotificationState) { chrome.storage.local.get(["feeNotificationBorder"]).then((result) => { const { feeNotificationBorder } = result; - if (feeNotificationBorder === null || feeNotificationBorder.feeBorder === null) { + console.log(result); + if (!feeNotificationBorder || (!feeNotificationBorder.feeBorder && feeNotificationBorder.feeBorder !== 0)) { setIsAutoFeeNotificationEnabled(true); setActiveSettingsTab(1); toggleSettings();