Skip to content

Keep unavailable Robux balances from displaying as zero - #447

Open
bubblegump30 wants to merge 1 commit into
NotValra:mainfrom
bubblegump30:fix/community-funds-missing-robux
Open

bubblegump30 wants to merge 1 commit into
NotValra:mainfrom
bubblegump30:fix/community-funds-missing-robux

Conversation

@bubblegump30

Copy link
Copy Markdown

Addresses the Community Funds dropdown part of #374. The More Robux Digits behavior is covered separately by #400.

Reproduction

Enable “Combine Community Funds with Robux Balance” and open the Robux dropdown when the personal balance lookup returns no usable amount. The row can show 0 Robux, even though the balance is unknown.

Cause and fix

The currency tracker coerced explicit null and other nonnumeric payload values to zero. The Community Funds dropdown also converted a missing result with Number(null). The tracker now caches only finite balances from numeric values or nonblank numeric strings, and the dropdown keeps missing values unset until it has a valid balance. A genuine zero still displays and the last known balance is retained when a refresh fails.

Verification

  • Built the Chromium and Firefox extensions with npm run build.
  • Exercised the tracker and dropdown data-loading path with mocked responses for missing and invalid values, a real zero, a valid balance, and a failed refresh after a valid balance.
  • Checked the diff for whitespace errors and confirmed the relevant ESLint findings match main.
  • Live Roblox account verification is pending.

AI disclosure: Codex traced both coercion paths, wrote the patch and the regression checks, inspected the diff, and ran the checks above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant