[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 01/02: do not show rate when is zero
From: |
gnunet |
Subject: |
[taler-wallet-core] 01/02: do not show rate when is zero |
Date: |
Mon, 27 Nov 2023 18:47:28 +0100 |
This is an automated email from the git hooks/post-receive script.
sebasjm pushed a commit to branch master
in repository wallet-core.
commit 237d031ae6dcadc635a1e22e82083500e42f99a2
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Mon Nov 27 14:46:26 2023 -0300
do not show rate when is zero
---
packages/demobank-ui/src/pages/admin/AdminHome.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/packages/demobank-ui/src/pages/admin/AdminHome.tsx
b/packages/demobank-ui/src/pages/admin/AdminHome.tsx
index 1892acfce..b1acb8160 100644
--- a/packages/demobank-ui/src/pages/admin/AdminHome.tsx
+++ b/packages/demobank-ui/src/pages/admin/AdminHome.tsx
@@ -212,7 +212,7 @@ function MetricValue({ current, previous, spec }: { spec:
CurrencySpecification,
<i18n.Translate>from</i18n.Translate> {!previous ? "-" :
<RenderAmount value={Amounts.parseOrThrow(previous)} spec={spec} hideSmall />}
</small>
</div>
- {negative !== undefined &&
+ {!!rate &&
<span data-negative={negative} class="flex items-center gap-x-1.5
w-fit rounded-md bg-green-100 text-green-800 data-[negative=true]:bg-red-100
px-2 py-1 text-xs font-medium data-[negative=true]:text-red-700 whitespace-pre">
{negative ?
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0
24 24" stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.