Skip to content

Commit

Permalink
removes unnecessary guard clause
Browse files Browse the repository at this point in the history
Signed-off-by: vsanghishetty <[email protected]>
  • Loading branch information
vishsanghishetty committed Dec 17, 2024
1 parent 225ce70 commit 85986b6
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions frontend/src/lib/SimpleTimestamp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,6 @@ interface SimpleTimestampProps {
export const SimpleTimestamp: React.FC<SimpleTimestampProps> = ({ timestamp }) => {
const date = new Date(timestamp)

if (isNaN(date.getTime())) {
return <>{''}</>
}

let formattedDate = date.toLocaleString('en-GB', {
day: '2-digit',
month: 'short',
Expand Down

0 comments on commit 85986b6

Please sign in to comment.