Page MenuHomePhabricator

[Cashtab] Attempt to patch whitescreen failures related to OrderBook.js and hex
ClosedPublic

Authored by bytesofman on Fri, Oct 25, 17:40.

Details

Summary

Getting repeated reports of this failure but have not been able to repeat. Based on what I am seeing in the dev log, failure seems related to hex.ts as it is used in OrderBook.js --- which means a hex method from ecash-lib.

Hex methods in this screen only used in one place on load. Validate input to make sure it is loaded before calculating isMaker.

Test Plan

npm test to confirm behavior is unchanged

this should only catch an edge case that happens sometimes while app is loading

Diff Detail

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