From c66d65921c464557201fc47c9be21dcc93128328 Mon Sep 17 00:00:00 2001 From: Frederik Bolding Date: Tue, 6 Jun 2023 11:00:42 +0200 Subject: [PATCH] [FLASK] Limit notification count display to 99+ (#19449) --- ui/components/multichain/global-menu/global-menu.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/components/multichain/global-menu/global-menu.js b/ui/components/multichain/global-menu/global-menu.js index 6b41efdb1..9e93ca4b1 100644 --- a/ui/components/multichain/global-menu/global-menu.js +++ b/ui/components/multichain/global-menu/global-menu.js @@ -153,7 +153,9 @@ export const GlobalMenu = ({ closeMenu, anchorElement }) => { }} marginInlineStart={2} > - {unreadNotificationsCount} + {unreadNotificationsCount > 99 + ? '99+' + : unreadNotificationsCount} )}