Skip to content

Extra usage widgets hardcode $ instead of using the API's currency field #415

Closed

Description

@mhriemers

Summary

The usage API reports the account's billing currency ("currency": "EUR" in my case), but ExtraUsageRemaining formats with a hardcoded $. Once a monthly limit is set, an EUR account sees its euros displayed with a dollar sign.

Raw API response (/api/oauth/usage, trimmed)

"extra_usage": {
  "is_enabled": true,
  "monthly_limit": null,
  "used_credits": 542.0,
  "utilization": null,
  "currency": "EUR",
  "disabled_reason": null
}

Suggested fix

Parse the currency field (it isn't currently in UsageApiResponseSchema/CachedUsageDataSchema) and format with the matching symbol, falling back to $/the raw currency code when unknown.

Related to but distinct from #387, which fixed the cents/dollars math. Also related: #413, #414.

Activity

  1. added 2 commits that reference this issue on Jun 14, 2026
    2d85849
    7db0914
  2. added 2 commits that reference this issue on Oct 20, 2026
    49a498d
    8d69ddf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions