X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/f9dafeec8d45f0cb19d71326b7fa877891a7eb9e..6faff5910b3e7bdaf47ab5ede7cf8094a1b4adb9:/src/common/formatters.ts diff --git a/src/common/formatters.ts b/src/common/formatters.ts index 5383c66e..ae50ee8a 100644 --- a/src/common/formatters.ts +++ b/src/common/formatters.ts @@ -8,9 +8,9 @@ export const formatDate = (isoDate?: string) => { if (isoDate) { const date = new Date(isoDate); const text = date.toLocaleString(); - return text === 'Invalid Date' ? "" : text; + return text === 'Invalid Date' ? "(none)" : text; } - return ""; + return "(none)"; }; export const formatFileSize = (size?: number) => {