aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-05-08 11:31:07 -0700
committerAnton Tananaev <anton@traccar.org>2022-05-08 11:31:07 -0700
commit934d9fa416d30a24dc038e5a1e12ef3f7eaec160 (patch)
tree2dcaf3d5f1cf9e53fec70633fe6670e65aa7c0cd
parent15d7000b16e90db68f52931cc16dfa3ebbd74114 (diff)
downloadtrackermap-web-934d9fa416d30a24dc038e5a1e12ef3f7eaec160.tar.gz
trackermap-web-934d9fa416d30a24dc038e5a1e12ef3f7eaec160.tar.bz2
trackermap-web-934d9fa416d30a24dc038e5a1e12ef3f7eaec160.zip
Fix type
-rw-r--r--modern/src/components/registration/LoginForm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/components/registration/LoginForm.js b/modern/src/components/registration/LoginForm.js
index 11847d3e..3d030a89 100644
--- a/modern/src/components/registration/LoginForm.js
+++ b/modern/src/components/registration/LoginForm.js
@@ -154,7 +154,7 @@ const LoginForm = () => {
)}
<Snackbar
anchorOrigin={{ vertical: 'top', horizontal: 'center' }}
- open={announcement && !announcementShown}
+ open={!!announcement && !announcementShown}
message={announcement}
action={(
<IconButton size="small" color="inherit" onClick={() => setAnnouncementShown(true)}>