create account

Steem Challanger 2.0 Website showing wrong balance of user Steems in USD by iamankit

View this thread on: hive.blogpeakd.comecency.com
· @iamankit · (edited)
$7.09
Steem Challanger 2.0 Website showing wrong balance of user Steems in USD
#### Note
This project is amazing and i always used this. I also want to contribute my knowledge on this project but let leave this for later. Today i see the new version of steem challenger and get excited. I used it and i love the design but i see some little bugs in the project.

#### Expected behavior
Website wallet section needs to show user account Steem balance after converting them in US Dollars.
The other bug is in website responsiveness, when i switch website on my mobile the pending posts table column "payout in USD" cropped and become invisible.  

#### Actual behavior
But website wallet section didn't converting my steem balance in us dollars. It show me my steem balance as it is with US $ sign.

![Screen Shot 2018-02-25 at 6.41.42 PM.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519564685/aa3of1coaykqykktbi1j.png)

![Screen Shot 2018-02-25 at 6.54.29 PM.png](https://res.cloudinary.com/hpiynhbhq/image/upload/v1519565631/ufc5iqaxgpmgp6ggdofl.png)

#### How to reproduce
To reproduce the bug do the following steps :-
- Open [this](https://steem.show) and enter your steemit username. 
- Now check your wallet section here you see that your steem balance with wrong calculation. If you have 10 steem then it show US $ 10, but it needs first to multiply your balance first with 1 steem price in USD and then shows in wallet section.
- Now to see other bug, just decrease your screen window to mobile screen width and then head to the pending payout table and you see the column "pending payout in USD is cropped".
<pre> <code>* Operating system: Mac OS 11
* Browser: Google Chrome
</code></pre>

#### Solution for this :-
There were two solution for this which are following :-
1. If you want to shows the actuall balance of user steem the please remove "US $" thing.
2. Or, if you want to show the steem balance in US $ then first multiply total steem with the value of 1 steem.
3. For pending payout table responsiveness, just add vertical scrollbar to the table.
   

<br /><hr/><em>Posted on <a href="https://utopian.io/utopian-io/@iamankit/website-showing-wrong-balance-of-user-steems-in-usd">Utopian.io -  Rewarding Open Source Contributors</a></em><hr/>
👍  , , , , , , , , , , , , , , , , , , ,
properties (23)
authoriamankit
permlinkwebsite-showing-wrong-balance-of-user-steems-in-usd
categoryutopian-io
json_metadata"{"community":"utopian","app":"utopian/1.0.0","format":"markdown","repository":{"id":119975798,"name":"Steem-Challenger","full_name":"tyraelll/Steem-Challenger","html_url":"https://github.com/tyraelll/Steem-Challenger","fork":false,"owner":{"login":"tyraelll"}},"pullRequests":[],"platform":"github","type":"bug-hunting","tags":["utopian-io","utopian","steemchallengerbug","responsivness"],"links":["https://steem.show","https://utopian.io/utopian-io/@iamankit/website-showing-wrong-balance-of-user-steems-in-usd"],"image":["https://res.cloudinary.com/hpiynhbhq/image/upload/v1519564685/aa3of1coaykqykktbi1j.png","https://res.cloudinary.com/hpiynhbhq/image/upload/v1519565631/ufc5iqaxgpmgp6ggdofl.png"],"moderator":{"account":"codingdefined","time":"2018-02-27T06:47:48.528Z","reviewed":true,"pending":false,"flagged":false},"questions":[],"score":0,"issue":{"url":"https://github.com/tyraelll/Steem-Challenger/issues/10","number":10,"id":300512000,"title":"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"}}"
created2018-02-25 13:35:36
last_update2018-02-27 06:47:54
depth0
children21
last_payout2018-03-04 13:35:36
cashout_time1969-12-31 23:59:59
total_payout_value5.027 HBD
curator_payout_value2.065 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,195
author_reputation4,819,410,349,082
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries
0.
accountutopian.pay
weight2,500
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,337,480
net_rshares1,583,279,605,995
author_curate_reward""
vote details (20)
@codingdefined ·
It shows correctly to me
![](https://steemitimages.com/DQmQQLp1jP6K8G3PK1w9dhN4A6DkqES4RLeXTgbBBLvakR3/image.png)
properties (22)
authorcodingdefined
permlinkre-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t044107039z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-02-27 04:41:09
last_update2018-02-27 04:41:09
depth1
children6
last_payout2018-03-06 04:41:09
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length113
author_reputation533,274,036,397,313
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,773,930
net_rshares0
@hernandev ·
@codingdefined, I think the great point of confusion is to actually show the dollar sign on a SBD or STEEM balance.

While many sites does that, just sufixing the amount with the currency name may be a better idea.

I just posted this image into another comment:

![https://i.imgur.com/PtCQ15J.png](https://i.imgur.com/PtCQ15J.png)

It gets a little more clear when the values symbols are not breake into multiline also.

Thanks
properties (22)
authorhernandev
permlinkre-codingdefined-re-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t071640880z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-02-27 07:16:51
last_update2018-02-27 07:16:51
depth2
children0
last_payout2018-03-06 07:16:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length428
author_reputation12,363,992,512,822
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,801,285
net_rshares0
@iamankit ·
maybe they fixed this... because at time of posting this my account has 10 steem and it showing me $10 steem. Now i can't check them because i have no steem right now.
properties (22)
authoriamankit
permlinkre-codingdefined-re-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t044405729z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-02-27 04:44:12
last_update2018-02-27 04:44:12
depth2
children4
last_payout2018-03-06 04:44:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length167
author_reputation4,819,410,349,082
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,774,529
net_rshares0
@codingdefined ·
Let me talk to @omeratagun who has created it, he might be the better person to evaluate it.
properties (22)
authorcodingdefined
permlinkre-iamankit-re-codingdefined-re-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t044648277z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"users":["omeratagun"],"app":"steemit/0.1"}
created2018-02-27 04:46:48
last_update2018-02-27 04:46:48
depth3
children3
last_payout2018-03-06 04:46:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length92
author_reputation533,274,036,397,313
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,775,035
net_rshares0
@codingdefined ·
Thank you for the contribution. It has been approved.

You can contact us on [Discord](https://discord.gg/uTyJkNm).
**[[utopian-moderator]](https://utopian.io/moderators)**
properties (22)
authorcodingdefined
permlinkre-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t064800772z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-02-27 06:48:03
last_update2018-02-27 06:48:03
depth1
children1
last_payout2018-03-06 06:48:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length172
author_reputation533,274,036,397,313
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,796,040
net_rshares0
@iamankit ·
Thank you so much sir.
properties (22)
authoriamankit
permlinkre-codingdefined-re-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t070445649z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-02-27 07:04:51
last_update2018-02-27 07:04:51
depth2
children0
last_payout2018-03-06 07:04:51
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length22
author_reputation4,819,410,349,082
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,799,166
net_rshares0
@hernandev ·
Hello @iamankit, I've worked with @omeratagun building V2.

In fact, what you're suggesting makes sense.

The thing IS, I was not sure on the prefixes to use there, but any place on the page, which represnts USD is either prefixed with USD or U$, and any place which are not in USD, are displayed with the $ prefix, and a STEEM/SBD sufix.

I'm currently working on fixing those small issues, and the table, as you mentioned, is really broke on mobile.

Those are things I'm working on right now, to prepate it for a mobile (app) version as well.

I think @omeratagun is traveling, but while that, I'm both on utopian discord, and available for direct messages if you have more thoughts on it.

This is my Discord username: hernandev#5834

Thank you for your help.
properties (22)
authorhernandev
permlinkre-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t065441495z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-02-27 06:54:48
last_update2018-02-27 06:54:48
depth1
children3
last_payout2018-03-06 06:54:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length763
author_reputation12,363,992,512,822
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,797,251
net_rshares0
@iamankit ·
First of all what you do is really great sir. If you want i can make the table reaponsive for you.
properties (22)
authoriamankit
permlinkre-hernandev-re-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t070728563z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-02-27 07:07:30
last_update2018-02-27 07:07:30
depth2
children2
last_payout2018-03-06 07:07:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length98
author_reputation4,819,410,349,082
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,799,590
net_rshares0
@hernandev ·
@iamankit I'm working on that already, but, going to release in a couple hours, be welcome to take it from there and improve anything you want.

About the bug itself, here is what the balances are looking right now (still in dev)

Let me know if this makes more sense to you.

![https://i.imgur.com/PtCQ15J.png](https://i.imgur.com/PtCQ15J.png)

Thank you for the attention to detail, you help is always welcome on any project I may work with.
properties (22)
authorhernandev
permlinkre-iamankit-re-hernandev-re-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t071347437z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-02-27 07:13:48
last_update2018-02-27 07:13:48
depth3
children1
last_payout2018-03-06 07:13:48
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length443
author_reputation12,363,992,512,822
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,800,719
net_rshares0
@hernandev ·
@iamankit, please check it live now, it probably have the fixes you're a looking for.

https://steem.show/@iamankit

If you get the old version, just ensure to refresh the browser cache.
👍  
properties (23)
authorhernandev
permlinkre-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t080955215z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-02-27 08:09:57
last_update2018-02-27 08:09:57
depth1
children3
last_payout2018-03-06 08:09:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length186
author_reputation12,363,992,512,822
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,810,772
net_rshares603,786,296
author_curate_reward""
vote details (1)
@iamankit ·
yeah its fine now... thanks for fixing this sir. I am also working on ios app of steem challanger 2.0. Hope i will come with it soon
properties (22)
authoriamankit
permlinkre-hernandev-re-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t081838349z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-02-27 08:18:42
last_update2018-02-27 08:18:42
depth2
children2
last_payout2018-03-06 08:18:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length132
author_reputation4,819,410,349,082
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,812,297
net_rshares0
@hernandev ·
Call me on Discord, so we can coordinate, since this is a full browser only / SPA, it can be done by just wrapping it with Cordova.
properties (22)
authorhernandev
permlinkre-iamankit-re-hernandev-re-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t090718288z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"busy","app":"busy/2.4.0"}
created2018-02-27 09:07:21
last_update2018-02-27 09:07:21
depth3
children1
last_payout2018-03-06 09:07:21
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length131
author_reputation12,363,992,512,822
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,820,527
net_rshares0
@minnowsupport ·
<p>Congratulations!  This post has been upvoted from the communal account, @minnowsupport, by iamankit from the Minnow Support Project. It's a witness project run by aggroed, ausbitbank, teamsteem, theprophet0, someguy123, neoxian, followbtcnews, and netuoso. The goal is to help Steemit grow by supporting Minnows.  Please find us at the <a href="https://discord.gg/HYj4yvw"> Peace, Abundance, and Liberty Network (PALnet) Discord Channel</a>.  It's a completely public and open space to all members of the Steemit community who voluntarily choose to be there.</p> <p>If you would like to delegate to the Minnow Support Project you can do so by clicking on the following links: <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=102530.639667%20VESTS">50SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=205303.639667%20VESTS">100SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=514303.639667%20VESTS">250SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=1025303.639667%20VESTS">500SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=2053030.639667%20VESTS">1000SP</a>, <a href="https://v2.steemconnect.com/sign/delegateVestingShares?delegator=&amp;delegatee=minnowsupport&amp;vesting_shares=10253030.639667%20VESTS">5000SP</a>. <br><strong>Be sure to leave at least 50SP undelegated on your account.</strong></p>
properties (22)
authorminnowsupport
permlinkre-website-showing-wrong-balance-of-user-steems-in-usd-20180227t031013
categoryutopian-io
json_metadata""
created2018-02-27 03:10:12
last_update2018-02-27 03:10:12
depth1
children0
last_payout2018-03-06 03:10:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,704
author_reputation148,902,805,319,183
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,756,509
net_rshares0
@steemitstats ·
@iamankit, Upvote is the only thing I can support you.
properties (22)
authorsteemitstats
permlink20180225t134611057z-post
categoryutopian-io
json_metadata{"tags":["utopian-io"]}
created2018-02-25 13:46:12
last_update2018-02-25 13:46:12
depth1
children1
last_payout2018-03-04 13:46:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length54
author_reputation351,882,871,185
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,339,527
net_rshares0
@iamankit ·
and thats all i want from you sir. your upvote encourage me to do better day by day.
properties (22)
authoriamankit
permlinkre-steemitstats-20180225t134611057z-post-20180225t141725198z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"app":"steemit/0.1"}
created2018-02-25 14:17:30
last_update2018-02-25 14:17:30
depth2
children0
last_payout2018-03-04 14:17:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length84
author_reputation4,819,410,349,082
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,345,962
net_rshares0
@utopian-io ·
### Hey @iamankit I am @utopian-io. I have just upvoted you!
#### Achievements
- You have less than 500 followers. Just gave you a gift to help you succeed!
- Seems like you contribute quite often. AMAZING!
#### Suggestions
- Contribute more often to get higher and higher rewards. I wish to see you often!
- Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!
#### Get Noticed!
- Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!
#### Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. <a href="https://discord.gg/zTrEMqB">Participate on Discord</a>. Lets GROW TOGETHER!
- <a href="https://v2.steemconnect.com/sign/account-witness-vote?witness=utopian-io&approve=1">Vote for my Witness With SteemConnect</a>
- <a href="https://v2.steemconnect.com/sign/account-witness-proxy?proxy=utopian-io&approve=1">Proxy vote to Utopian Witness with SteemConnect</a>
- Or vote/proxy on <a href="https://steemit.com/~witnesses">Steemit Witnesses</a>

[![mooncryption-utopian-witness-gif](https://steemitimages.com/DQmYPUuQRptAqNBCQRwQjKWAqWU3zJkL3RXVUtEKVury8up/mooncryption-s-utopian-io-witness-gif.gif)](https://steemit.com/~witnesses)

**Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x**
properties (22)
authorutopian-io
permlinkre-iamankit-website-showing-wrong-balance-of-user-steems-in-usd-20180227t174833471z
categoryutopian-io
json_metadata{"tags":["utopian-io"],"community":"utopian","app":"utopian/1.0.0"}
created2018-02-27 17:48:33
last_update2018-02-27 17:48:33
depth1
children0
last_payout2018-03-06 17:48:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,506
author_reputation152,955,367,999,756
root_title"Steem Challanger 2.0 Website showing wrong balance of user Steems in USD"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id40,922,581
net_rshares0