From a854eb2d8a100f57a2eaaea9ec1d114f96e27bf5 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 7 Jul 2024 06:53:25 -0700 Subject: Readonly user notification token --- src/common/components/NativeInterface.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/components') 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); -- cgit v1.2.3