HomePhabricator

[Cashtab] Error handling for formatBalance

Description

[Cashtab] Error handling for formatBalance

Summary: Return '0' in formatBalance if input cannot be processed. Add unit tests for 0, null, and undefined inputs.

Test Plan: npm test

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

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

Details

Provenance
Joey King <joseph.roy.king@gmail.com>Authored on Mar 2 2021, 13:16
bytesofmanPushed on Mar 2 2021, 13:35
Reviewer
Restricted Project
Differential Revision
D9289: [Cashtab] Error handling for formatBalance
Parents
rABCefbbc30bc786: [Cashtab] Replace commas as thousands separator with space
Branches
Unknown
Tags
Unknown

Event Timeline