aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Balance.svelte8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/Balance.svelte b/src/components/Balance.svelte
index cf61e0b0..4ceaa65a 100644
--- a/src/components/Balance.svelte
+++ b/src/components/Balance.svelte
@@ -22,13 +22,17 @@
<div>
{#if user.haspin && !$pin}
- <button onclick={toggleShow} class="flex gap-2 text-xl">
+ <button
+ onclick={toggleShow}
+ class="flex gap-2 text-xl"
+ data-testid="balance-show"
+ >
<iconify-icon noobserver icon="ph:eye-slash-bold" width="32"
></iconify-icon>
<div class="my-auto">{$t("user.showBalance")}</div>
</button>
{:else if !isNaN(rate)}
- <div class="flex gap-4">
+ <div class="flex gap-4" data-testid="balance-value">
<Amount
amount={Math.max(balance - (id === user.id ? locked || 0 : 0), 0)}
{rate}