fixed support for null branch in status
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user