1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +01:00

[FLASK] Limit notification count display to 99+ (#19449)

This commit is contained in:
Frederik Bolding 2023-06-06 11:00:42 +02:00 committed by GitHub
parent 15bdb32bb6
commit c66d65921c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,9 @@ export const GlobalMenu = ({ closeMenu, anchorElement }) => {
}}
marginInlineStart={2}
>
{unreadNotificationsCount}
{unreadNotificationsCount > 99
? '99+'
: unreadNotificationsCount}
</Text>
)}
</MenuItem>