fixed support for null branch in status
This commit is contained in:
@@ -73,7 +73,11 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const ellipsis = (a: string, max: number) => {
|
const ellipsis = (a: string, max: number) => {
|
||||||
|
if (a) {
|
||||||
return a.length > max ? a.substr(0, max) + '..' : a;
|
return a.length > max ? a.substr(0, max) + '..' : a;
|
||||||
|
} else {
|
||||||
|
return a;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const timeSince = (date: number) => {
|
const timeSince = (date: number) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user