Skip to content

Commit

Permalink
Fix strict equality check for age variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rk1274 committed Oct 30, 2024
1 parent 29a0661 commit e04e1fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/static/wrstat/src/History.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ const determineGraphWidth = () => Math.max(500, window.innerWidth - 60),

useEffect(() => window.addEventListener("resize", () => setHistoryWidth(determineGraphWidth())), []);

if (history.length === 0 || isUser || age != 0) {
if (history.length === 0 || isUser || age !== 0) {
return <></>;
}

Expand Down

0 comments on commit e04e1fb

Please sign in to comment.