refactor
This commit is contained in:
@@ -111,11 +111,7 @@ function CorrespondentsPanel({
|
||||
);
|
||||
|
||||
const renderUsage = useCallback((correspondent: Correspondent) => {
|
||||
const count = correspondent.usage_count;
|
||||
if (count == null || !Number.isFinite(count)) {
|
||||
return '0';
|
||||
}
|
||||
return count.toString();
|
||||
return correspondent.usage_count;
|
||||
}, []);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user