Skip to content

Commit

Permalink
Fix flair check boolean
Browse files Browse the repository at this point in the history
I failed that simple task twice now.
  • Loading branch information
MonkeyDo committed Dec 18, 2024
1 parent 71ecf22 commit f2c7754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/js/src/settings/flairs/FlairsSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default function FlairsSettings() {
);
const values = await response.text();
const [shouldNag, daysLeft] = values.split(",");
setFlairUnlocked(Boolean(shouldNag));
setFlairUnlocked(!shouldNag);
setUnlockDaysLeft(Math.min(Number(daysLeft), 0));
} catch (error) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit f2c7754

Please sign in to comment.