cointop-sh / cointop

A fast and lightweight interactive terminal based UI application for tracking cryptocurrencies 🚀
https://cointop.sh
Apache License 2.0
3.94k stars 309 forks source link

Switching back to main view from Portfolio view corrupts the displayed coins in the main list #322

Open beachwood23 opened 11 months ago

beachwood23 commented 11 months ago

I am seeing that switching from the Portfolio view back to the main view sees issues in updating the list. The coins and their list placement are maintained in the main view, despite that list placement only applying for the Portfolio view.

For example, in this sample portfolio, I have Bitcoin Cash as the 3rd coin in the list, and Monero as the 4th coin in the list.

Screenshot 2023-08-02 at 10 04 42 PM

When I switch out of the portfolio view, to the main screen, the coin list is corrupted and maintains these two coins by their portfolio placement.

Screenshot 2023-08-02 at 10 05 01 PM

Running on Mac. Verified the issue appears in both Terminal.app and iTerm, running default zsh shell.

It seems like we need to properly clear some list cache when switching out of the portfolio view. Will look into this more soon.