Skip to content

Add option to hide your wallet balance from the site topbar #5051

Ben requested to merge feat/hide-wallet-balance-head-5051 into master

Card: #5051 (closed)

Engine (fixes an issue with token price retrieval) engine!917 (diffs)

Summary

Adds option in setting for users to decide whether they want their wallet balance to show in the topbar. It saves state to local storage so will persist until local storage is cleared, directly or indirectly.

Steps to test

  1. Go to Settings > Other > Wallet (under Privacy header)
  2. The box should be defaulted to checked (showing the balance header)
  3. Uncheck box and hit the update button - topbar should be hidden now, on refresh and navigating around the site.
  4. Go back and recheck the box and save - topbar should be visible again.

Estimated Regression Scope

Changes are predominantly additive and add a new option to the settings menu, containing a new component - most of the regression scope is limited to here, and the topbar header.

There IS one minor change that should be safe to pro settings to prevent an error that was being thrown locally, stopping settings from loading.

Impact on other platforms

Front-end only change - mobile has no equivilant to this setting and value would not be shared.

Edited by Ben

Merge request reports