Skip to content

Commit

Permalink
fix(solidarity): removes unecessary typeof number check
Browse files Browse the repository at this point in the history
  • Loading branch information
Viviane Dias committed Dec 7, 2023
1 parent 4989f81 commit bd58120
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export function getSupportType(subject: string) {
export function isValidNumber(georef: string | number | null) {
if (!georef) return false;
const num = Number(georef);
return typeof num === "number" && !isNaN(num);
return !isNaN(num);
}

export function sanitizeCity(city: string) {
Expand Down

0 comments on commit bd58120

Please sign in to comment.