update errors handler
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
export function convertBytes(bytes: number) {
|
||||
if (!bytes) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
const units = ['B', 'KB', 'MB', 'GB', 'TB'];
|
||||
|
||||
if (bytes === 0) return '0 B';
|
||||
|
||||
Reference in New Issue
Block a user