Skip to content
This repository was archived by the owner on Jul 23, 2023. It is now read-only.

Commit 11c9c16

Browse files
committed
Fix alert check
1 parent 3c15ec4 commit 11c9c16

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/components/AppAlert.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import React, { Fragment, useEffect, useState } from 'react';
22
import {
3-
Typography,
43
makeStyles,
54
Box,
6-
Link,
75
Container,
86
} from '@material-ui/core';
97
import { useRecoilValue } from 'recoil';
@@ -39,7 +37,7 @@ export const AppAlert = () => {
3937
updateAlert();
4038
}, [alertSourceUrl]);
4139

42-
if (!alert) {
40+
if (!alert || !alert.enabled) {
4341
return null;
4442
}
4543

0 commit comments

Comments
 (0)