Reset label

This commit is contained in:
saplf
2019-09-09 15:04:03 +08:00
parent 5c324a7863
commit 37d19c5e87
3 changed files with 14 additions and 5 deletions

View File

@@ -55,3 +55,10 @@ export function displayPhone(phone: string): string {
export function displayTime(time: string | Moment): string {
return moment(time).format('YYYY-MM-DD HH:mm');
}
export function displayLabel(label?: string | null): string | null | undefined {
if (label && label.toLowerCase().startsWith('usdt')) {
return 'USDT(erc20)';
}
return label;
}