Files
AutistMask/src/shared
user 57de01b546
All checks were successful
check / check (push) Successful in 13s
fix: suppress USD display on testnet networks
When connected to a testnet (e.g. Sepolia), stale mainnet prices from
the in-memory cache caused USD values to display even though
refreshPrices() correctly skipped fetching. Three fixes applied:

- refreshPrices() now clears the price cache when on a testnet instead
  of silently returning, removing any stale mainnet prices
- getPrice(), getAddressValueUsd(), getWalletValueUsd(), and
  getTotalValueUsd() all return null when the current network is a
  testnet, as defense-in-depth
- The settings network switcher immediately clears prices when
  switching to a testnet, so the UI updates without waiting for the
  next refresh cycle

closes #139
2026-03-01 11:14:39 -08:00
..