Browser-laptop: Incorrect decimal values shown for BAT-USD after reconcile

Created on 16 Jan 2018  ·  11Comments  ·  Source: brave/browser-laptop

Description

Incorrect decimal values shown for BAT-USD after reconcile

Test plan / Steps to Reproduce

  1. Fund wallet with decimal values such as 7.51 BAT
  2. Change reconcilestamp to trigger payment process
  3. Once reconcile is complete, shows incorrect decimal values for BAT-USD

Actual result:
image

Expected result:
Should show correct BAT-USD values even for decimal values

Reproduces how often:
100%

Brave Version

about:brave info:

Brave | 0.19.136
-- | --
rev | 1659471
Muon | 4.7.1
libchromiumcontent | 64.0.3282.85
V8 | 6.4.388.20
Node.js | 7.9.0
Update Channel | Release
OS Platform | Microsoft Windows
OS Release | 10.0.16299
OS Architecture | x64

Reproducible on current live release:
Yes

Additional Information

Found the scenario on staging wallet.
browser profile
cc: @mrose17 @evq @bsclifton

0.21.x Qchecked-Linux Qchecked-Win64 Qchecked-macOS Qtest-plan-specified bug featurrewards initiativbat-payments release-noteinclude

Most helpful comment

how about <.01USD ?

All 11 comments

@bradleyrichter what should we display here? USD value is 0.0066051665 and we only show two places and because of rounding we are currently displaying 0.01 USD which is of course wrong

how about <.01USD ?

This should work!

On Jan 16, 2018, at 5:32 AM, Marshall T. Rose notifications@github.com wrote:

how about <.01USD ?


You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub, or mute the thread.

Showing <.01 USD on MacOS:
screen shot 2018-02-23 at 2 50 46 pm

@NejcZdovc I think it would look better to add a leading 0.

So, 0.01 BAT (< 0.01 USD)

And a space between the < and the leading zero as in your example @bradleyrichter ? Meaning:
0.01 BAT (< 0.01 USD) vs 0.01 BAT (<0.01 USD)

Reopening, so that we can adjust this value

Looks good on Windows
image

MacOS:
screen shot 2018-02-27 at 11 07 17 am

Looks good under Ubuntu 17.10 x64 👍 Used 0.21.16 a7bed47f55863b9f48e5ce31bcaf8c6ee21c10d5 without any issues.

screen shot 2018-02-27 at 9 26 31 pm

Was this page helpful?
0 / 5 - 0 ratings