Skip to content

Commit

Permalink
fix(pages/messages/id): hide date when loading
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholaschiang committed Apr 4, 2021
1 parent 4337d5a commit 4b50029
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/messages/[id].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function MessagePage(): JSX.Element {
{data && from && parseFrom(from).name}
</span>
{data && <span className='on'>on</span>}
{createdAt.toDateString() !== 'Invalid Date' && (
{data && createdAt.toDateString() !== 'Invalid Date' && (
<span className='date'>{createdAt.toDateString()}</span>
)}
</a>
Expand Down

0 comments on commit 4b50029

Please sign in to comment.