aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2024-07-07 06:53:25 -0700
committerAnton Tananaev <anton@traccar.org>2024-07-07 06:53:25 -0700
commita854eb2d8a100f57a2eaaea9ec1d114f96e27bf5 (patch)
tree43e6e28e52c590673de01c3371becaafbb2b7e03 /src/common
parent47e2ca4db81183616a5aacb2c41fc0ad3da5e44b (diff)
downloadtrackermap-web-a854eb2d8a100f57a2eaaea9ec1d114f96e27bf5.tar.gz
trackermap-web-a854eb2d8a100f57a2eaaea9ec1d114f96e27bf5.tar.bz2
trackermap-web-a854eb2d8a100f57a2eaaea9ec1d114f96e27bf5.zip
Readonly user notification token
Diffstat (limited to 'src/common')
-rw-r--r--src/common/components/NativeInterface.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/components/NativeInterface.js b/src/common/components/NativeInterface.js
index b088de0e..d43b678c 100644
--- a/src/common/components/NativeInterface.js
+++ b/src/common/components/NativeInterface.js
@@ -37,7 +37,7 @@ const NativeInterface = () => {
}, [setNotificationToken]);
useEffectAsync(async () => {
- if (user && !user.readonly && notificationToken) {
+ if (user && notificationToken) {
window.localStorage.setItem('notificationToken', notificationToken);
setNotificationToken(null);