Skip to content

Commit

Permalink
fix(developer): correct race condition for key creation date
Browse files Browse the repository at this point in the history
  • Loading branch information
steveoh committed Oct 31, 2023
1 parent a8b9472 commit cf241d0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/developer/src/components/page/Key.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ export const Component = () => {
<MetadataItem>
<CakeIcon className={iconStyle} />
<Banner>
{dateFormatter.format(
Date.parse(data?.created.toDate().toISOString()),
)}
{data?.created.toDate().toISOString() &&
dateFormatter.format(
Date.parse(data?.created.toDate().toISOString()),
)}
</Banner>
</MetadataItem>
</Card>
Expand Down

0 comments on commit cf241d0

Please sign in to comment.