refactor
This commit is contained in:
@@ -125,7 +125,7 @@ function CorrespondentsPanel({
|
||||
if (!usage) {
|
||||
return '0';
|
||||
}
|
||||
const total = typeof usage.total === 'number' ? usage.total : 0;
|
||||
const total = Number.isFinite(usage.total) ? Number(usage.total) : 0;
|
||||
return total.toString();
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user