From 20b9e62aa1d9ae84ddcf8f36f60515021d3f9210 Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Wed, 18 Jan 2023 17:30:09 -0300
Subject: fix: showing the current value of the coin

---
 .../src/wallet/DeveloperPage.tsx                       | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

(limited to 'packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx')

diff --git a/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx b/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx
index 74e7ce611..3df3a470c 100644
--- a/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx
+++ b/packages/taler-wallet-webextension/src/wallet/DeveloperPage.tsx
@@ -215,12 +215,12 @@ export function View({
           <Button
             variant="contained"
             onClick={() => {
-              return api.background.call("freeze", 5000).then(() => {
+              return api.background.call("freeze", 4000).then(() => {
                 console.log("WAIT");
               });
             }}
           >
-            <i18n.Translate>freeze 5000</i18n.Translate>
+            <i18n.Translate>freeze 4000</i18n.Translate>
           </Button>
         </Grid>
         <Grid item>
@@ -454,9 +454,6 @@ function ShowAllCoins({
             <td>
               <i18n.Translate>denom</i18n.Translate>
             </td>
-            <td>
-              <i18n.Translate>value</i18n.Translate>
-            </td>
             <td>
               <i18n.Translate>status</i18n.Translate>
             </td>
@@ -471,7 +468,13 @@ function ShowAllCoins({
             return (
               <tr key={idx}>
                 <td>{c.id.substring(0, 5)}</td>
-                <td>{c.denom_value}</td>
+                <td>
+                  {Amounts.stringifyValue({
+                    value: c.denom_value,
+                    fraction: c.denom_fraction,
+                    currency: "ANY",
+                  })}
+                </td>
                 <td>{c.status}</td>
                 <td>{c.from_refresh ? "true" : "false"}</td>
                 <td>{String(c.ageKeysCount)}</td>
@@ -496,9 +499,6 @@ function ShowAllCoins({
             <td>
               <i18n.Translate>denom</i18n.Translate>
             </td>
-            <td>
-              <i18n.Translate>value</i18n.Translate>
-            </td>
             <td>
               <i18n.Translate>status</i18n.Translate>
             </td>
-- 
cgit v1.2.3

