HomePhabricator

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

Description

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

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

Reviewers: #bitcoin_abc, johnkuney

Reviewed By: #bitcoin_abc, johnkuney

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

Details

Provenance
bytesofmanAuthored on Fri, Oct 25, 17:38
bytesofmanPushed on Fri, Oct 25, 17:59
Reviewer
Restricted Project
Differential Revision
D17003: [Cashtab] Attempt to patch whitescreen failures related to OrderBook.js and hex
Parents
rABCd20281f7a04d: [Cashtab] Patch cancel vs buy distinction in agora partials
Branches
Unknown
Tags
Unknown