HomePhabricator

[Cashtab] Do not load ONESHOT offers on manage screen for partials

Description

[Cashtab] Do not load ONESHOT offers on manage screen for partials

Summary:
We get tokenIds from the activeOffersByPubKey method to help the user manage their active offers. But we can only load PARTIAL offers with the Orderbook component.

Filter activeOffersByPubKey to only manage partial offers from the partial screen. This prevents white screen failures when clicking manage from partial screen.

Test Plan: npm test, npm start, list nft and list token, go to agora screen, toggle switch, no white screen failure from minAcceptedTokens method not existing for oneshot offers

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

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

Details

Event Timeline