Skip to content

Commit

Permalink
LB-1729: Flairs settings shows incorrect unlocked information (#3153)
Browse files Browse the repository at this point in the history
  • Loading branch information
fettuccinae authored Jan 28, 2025
1 parent 53b3e9a commit 1e07bb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/js/src/settings/flairs/FlairsSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ export default function FlairsSettings() {
`https://metabrainz.org/donations/nag-check?editor=${name}`
);
const values = await response.text();
const [shouldNag, daysLeft] = values.split(",");
setFlairUnlocked(!Number(shouldNag));
// discard the "shouldNag" value
const [_, daysLeft] = values.split(",");
setUnlockDaysLeft(Math.max(Number(daysLeft), 0));
} catch (error) {
// eslint-disable-next-line no-console
Expand Down

0 comments on commit 1e07bb6

Please sign in to comment.