HomePhabricator

[Cashtab] Show correct fiat on token creation error msg

Description

[Cashtab] Show correct fiat on token creation error msg

Summary: The error msg shown to a user trying to create a token with 0 XEC in their wallet currently is hardcoded to '$' and 'USD', even though the app supports multiple currencies. This diff corrects this oversight by applying the same code used in balance display.

Test Plan:
npm start
Create a new wallet or select a wallet with less than 5.46 XEC
Change currency to anything but USD
Navigate to "Tokens" page and confirm that error msg displays your selected currency, e.g. "You need at least 5.46 XEC (₩ 0.3371 KRW ) to create a token"

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D9845

Details

Provenance
Joey King <joseph.roy.king@gmail.com>Authored on Aug 4 2021, 13:15
bytesofmanPushed on Aug 4 2021, 18:36
Reviewer
Restricted Project
Differential Revision
D9845: [Cashtab] Show correct fiat on token creation error msg
Parents
rABCaf88f4faa452: [Automated] Update timing.json
Branches
Unknown
Tags
Unknown