diff options
-rw-r--r-- | modern/src/common/components/BottomMenu.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/common/components/BottomMenu.js b/modern/src/common/components/BottomMenu.js index 68ccf056..e2b75959 100644 --- a/modern/src/common/components/BottomMenu.js +++ b/modern/src/common/components/BottomMenu.js @@ -59,7 +59,7 @@ const BottomMenu = () => { ...user, attributes: { ...user.attributes, - notificationTokens: tokens.filter((it) => it !== notificationToken).join(','), + notificationTokens: tokens.length > 1 ? tokens.filter((it) => it !== notificationToken).join(',') : undefined, }, }; await fetch(`/api/users/${user.id}`, { |