Skip to content

Commit

Permalink
fix(dashboard): remove decimals from last price
Browse files Browse the repository at this point in the history
  • Loading branch information
adagora authored Nov 24, 2023
1 parent 58ec8dd commit 4e5a148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion solarathon/pages/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def DashboardCard(price: str, procentChange: str, icon: solara.Element = None, m
},
):
with solara.GridFixed(columns=2, justify_items="space-between", align_items="baseline"):
solara.Text(str(f"{decimals(price)}$"), style={"font-size": "1.5rem", "font-weight": 500})
solara.Text(str(f"{price}$"), style={"font-size": "1.5rem", "font-weight": 500})
solara.Text(str("price"), style={"font-size": "0.6rem"})
if market_cap is not None: solara.Text(str(f"{format_price(decimals(market_cap))}$"), style={"font-weight": 400})
if market_cap is not None: solara.Text(str("market cap"), style={"font-size": "0.6rem"})
Expand Down

0 comments on commit 4e5a148

Please sign in to comment.