Page MenuHomePhabricator

[Cashtab] Error handling for formatBalance
ClosedPublic

Authored by bytesofman on Mar 2 2021, 13:17.

Details

Reviewers
Fabien
Group Reviewers
Restricted Project
Commits
rABC0abbfac420be: [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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable