Skip to content

Commit e5e66c7

Browse files
authored
Fix enable fee notifications problem (#25)
Fixed a problem when enabling notifications about a commission with an incorrectly set fee border
1 parent ae8aa2c commit e5e66c7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/popup/context/WithMainContext.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ export default function WithMainContext({ children }: PropsWithChildren) {
4747
if (feeNotificationState) {
4848
chrome.storage.local.get(["feeNotificationBorder"]).then((result) => {
4949
const { feeNotificationBorder } = result;
50-
if (feeNotificationBorder === null || feeNotificationBorder.feeBorder === null) {
50+
console.log(result);
51+
if (!feeNotificationBorder || (!feeNotificationBorder.feeBorder && feeNotificationBorder.feeBorder !== 0)) {
5152
setIsAutoFeeNotificationEnabled(true);
5253
setActiveSettingsTab(1);
5354
toggleSettings();

0 commit comments

Comments
 (0)