Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Balance does not display on homescreen when there is no internet connection #17

Open
benthecarman opened this issue Dec 12, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@benthecarman
Copy link
Contributor

Happened to me while working on a plane. Thought it was the bitcoin price api but I stubbed that out and the issue still existed. Maybe we are getting a font from the internet?

@benthecarman benthecarman added the bug Something isn't working label Dec 12, 2022
@benalleng
Copy link

Diving into this bug a little bit, I have come across what i believe to be the issue.
The react query object is of type MutinyBalance so even though it stores some data in the cache i believe it is still reaching out to the API to turn it into a number as MutinyBalance is what determines the values for confirmed, lightning, and unconfirmed.

@benalleng
Copy link

I think if the values could be stored in the cache as in integer or as a string instead of type MutinyBalance then the value could still be displayed. I'm hesitant to just open a PR as I really am not sure how i would go about this.

@benthecarman benthecarman transferred this issue from MutinyWallet/mutiny-node Feb 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants