diff --git a/src/util/common.js b/src/util/common.js index 938ced54..f434c5b3 100644 --- a/src/util/common.js +++ b/src/util/common.js @@ -28,3 +28,8 @@ export function getEventCords(ev) { detail: ev.detail, }; } + +export function abbreviateNumber(number) { + if (number > 99) return '99+'; + return number; +}