Skip to content

Commit

Permalink
[fetch] Use Number.isNaN and not just is NaN
Browse files Browse the repository at this point in the history
  • Loading branch information
Xennis committed Jun 4, 2024
1 parent a041e7d commit 071550f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/fetch/src/properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,5 @@ export const propsStartDate = (properties: Properties, name: string) => {

const convertDateString = (raw: string) => {
const date = new Date(raw)
return isNaN(date.getTime()) ? null : date
return Number.isNaN(date.getTime()) ? null : date
}

0 comments on commit 071550f

Please sign in to comment.