Added abbreviateNumber for notfication count (#82)

This commit is contained in:
Ajay Bura 2021-09-12 20:42:51 +05:30
parent 284ed9dea1
commit fc0dc8aea0

View file

@ -28,3 +28,8 @@ export function getEventCords(ev) {
detail: ev.detail,
};
}
export function abbreviateNumber(number) {
if (number > 99) return '99+';
return number;
}