premnirmal / StockTicker

A resizable widget that shows your financial portfolio on your android home screen
GNU General Public License v3.0
441 stars 116 forks source link

buggy portfolio widget with "display currency" turned on #284

Closed sans-c closed 2 years ago

sans-c commented 2 years ago

Describe the bug Since a few days (can't tell exactly which version introduced this) the second tab in the "portfolio" widget type is malformed if you turn "display currency" on in the widget settings.

To Reproduce Steps to reproduce the behavior:

  1. choose portfolio as your widget type
  2. add some stocks
  3. enable "display currency"
  4. second column of the widget displays some hexadecimal garbage like ...at@c1af4d0,00 (with the 0,00 at the end being the total current value in this case)

Expected behavior Show the correct value without the gibberish.

Screenshots Untitled

Smartphone (please complete the following information):

Additional context While there, maybe take a look at the "NaN". In case we just wan to monitor some stocks without actually haveing bought any, maybe just leave the field empty instead of displaying "NaN".

premnirmal commented 2 years ago

Fixed in b241ae2af23ee1232a07c12cb71107705da730e4