diff options
| author | Adam Soltys <[email protected]> | 2023-03-24 21:49:32 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-03-24 21:49:32 -0700 |
| commit | 6484736e1a69ff1d29143d0c79f6a6de3898289f (patch) | |
| tree | 3a7fdd4422381113dc6564b0cc2d28840b538178 /src/routes/(app)/payment | |
| parent | 095b3cf78004305ba25d2fa358d9362d5ca84b62 (diff) | |
| download | coinos-ui-6484736e1a69ff1d29143d0c79f6a6de3898289f.tar.gz coinos-ui-6484736e1a69ff1d29143d0c79f6a6de3898289f.zip | |
show tip percent
Diffstat (limited to 'src/routes/(app)/payment')
| -rw-r--r-- | src/routes/(app)/payment/[id]/+page.svelte | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routes/(app)/payment/[id]/+page.svelte b/src/routes/(app)/payment/[id]/+page.svelte index d3cc0b1b..8168208d 100644 --- a/src/routes/(app)/payment/[id]/+page.svelte +++ b/src/routes/(app)/payment/[id]/+page.svelte @@ -57,8 +57,9 @@ <span class="text-lg text-secondary">Tip</span> <div> {f(fiat(tip, rate), currency)} +({Math.round((tip * 100) / Math.abs(a))}%) <span class="text-secondary text-lg"> - ⚡️{s(tip)} + ⚡️{s(tip)} </span> </div> </div> |
