Skip to content

Commit

Permalink
Readonly user notification token
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Jul 7, 2024
1 parent 47e2ca4 commit a854eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/components/NativeInterface.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ const NativeInterface = () => {
}, [setNotificationToken]);

useEffectAsync(async () => {
if (user && !user.readonly && notificationToken) {
if (user && notificationToken) {
window.localStorage.setItem('notificationToken', notificationToken);
setNotificationToken(null);

Expand Down

0 comments on commit a854eb2

Please sign in to comment.