Skip to content

Commit c641b82

Browse files
authored
fix(sdk): format date only when value is available (#751)
1 parent f7db205 commit c641b82

File tree

1 file changed

+1
-1
lines changed
  • sdks/js/packages/core/react/components/organization/billing/invoices

1 file changed

+1
-1
lines changed

sdks/js/packages/core/react/components/organization/billing/invoices/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const getColumns: (
4141
: getValue();
4242
return (
4343
<Flex direction="column">
44-
<Text>{dayjs(value).format(dateFormat)}</Text>
44+
<Text>{value ? dayjs(value).format(dateFormat) : '-'}</Text>
4545
</Flex>
4646
);
4747
}

0 commit comments

Comments
 (0)