fixed support for null branch in status

This commit is contained in:
Arwid Thornström
2023-01-17 09:03:50 +01:00
parent 24547c75e4
commit 0a4c3ee6d6
@@ -73,7 +73,11 @@ module.exports = {
};
const ellipsis = (a: string, max: number) => {
return a.length > max ? a.substr(0, max) + '..' : a;
if (a) {
return a.length > max ? a.substr(0, max) + '..' : a;
} else {
return a;
}
};
const timeSince = (date: number) => {