Added abbreviateNumber for notfication count (#82)
This commit is contained in:
parent
284ed9dea1
commit
fc0dc8aea0
1 changed files with 5 additions and 0 deletions
|
@ -28,3 +28,8 @@ export function getEventCords(ev) {
|
|||
detail: ev.detail,
|
||||
};
|
||||
}
|
||||
|
||||
export function abbreviateNumber(number) {
|
||||
if (number > 99) return '99+';
|
||||
return number;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue