stakwork / sphinx-tribes-frontend

Frontend for sphinx tribes and bounties. The bounty platform that pays out in bitcoin. Sign up with Sphinx Chat, complete a bounty, and earn bitcoin! Go to our website for available bounties.
https://community.sphinx.chat/bounties
12 stars 42 forks source link

Show "0" value if % is too low instead of no value in superadmin #208

Closed ecurrencyhodler closed 8 months ago

ecurrencyhodler commented 8 months ago

Describe the bug On staging there is a really small (close to 0) value for % conversion of Sats paid to sats posted. This results in there a "0" value. However there is no 0 value being displayed next to "paid".

Screenshot 2024-02-08 at 2 51 31 PM

Expected behavior Display a 0 value if the % is below 0.00% for "bounties -> completed" and "satoshis->paid" section of the metrics dashboard.

Desktop (please complete the following information):

Acceptance Criteria

Here is an example unit test Here is an example component test

saithsab877 commented 8 months ago

Hi @ecurrencyhodler, assign me

saithsab877 commented 8 months ago

@ecurrencyhodler Thanks check it. https://www.loom.com/share/0bdfe172b0aa473d976d75f0b6e26fc8

ecurrencyhodler commented 8 months ago

Can you show it on bounties section too?

saithsab877 commented 8 months ago

Can you show it on bounties section too?

Bounties section mean this section

ecurrencyhodler commented 8 months ago

Nevermind. I see it in the video and missed it. Go ahead and submit a pr!

saithsab877 commented 8 months ago

Hi @ecurrencyhodler, Check https://www.loom.com/share/5887c6728c1242af9dc4c04304e5e7d5

saithsab877 commented 8 months ago

Nevermind. I see it in the video and missed it. Go ahead and submit a pr!

No problem, I'll get started on that pull request right away. Thanks for the clarification! I'll let you know once the PR is ready for review.