diff --git a/src/pages/Profile.jsx b/src/pages/Profile.jsx index df6e3d2..35406cc 100644 --- a/src/pages/Profile.jsx +++ b/src/pages/Profile.jsx @@ -54,7 +54,7 @@ export const Profile = () => { // Utility to escape text for embedding in XML/SVG const escapeXml = (unsafe) => { - if (unsafe == null) return ""; + if (unsafe === null) return ""; return String(unsafe) .replace(/&/g, "&") .replace(/ { // Extract number from "#42" or similar const numericRank = typeof rank === "string" ? parseInt(rank.replace(/[^0-9]/g, ""), 10) : rank; - if (isNaN(numericRank)) return; + if (Number.isNaN(numericRank)) return; const timeZone = resolveTimezone(timezone); const todayStr = toLocalDateString(new Date(), timeZone);