fix: showing the current value of the coin

This commit is contained in:
Sebastian 2023-01-18 17:30:09 -03:00
parent 733d06c8d4
commit 20b9e62aa1
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -215,12 +215,12 @@ export function View({
<Button <Button
variant="contained" variant="contained"
onClick={() => { onClick={() => {
return api.background.call("freeze", 5000).then(() => { return api.background.call("freeze", 4000).then(() => {
console.log("WAIT"); console.log("WAIT");
}); });
}} }}
> >
<i18n.Translate>freeze 5000</i18n.Translate> <i18n.Translate>freeze 4000</i18n.Translate>
</Button> </Button>
</Grid> </Grid>
<Grid item> <Grid item>
@ -454,9 +454,6 @@ function ShowAllCoins({
<td> <td>
<i18n.Translate>denom</i18n.Translate> <i18n.Translate>denom</i18n.Translate>
</td> </td>
<td>
<i18n.Translate>value</i18n.Translate>
</td>
<td> <td>
<i18n.Translate>status</i18n.Translate> <i18n.Translate>status</i18n.Translate>
</td> </td>
@ -471,7 +468,13 @@ function ShowAllCoins({
return ( return (
<tr key={idx}> <tr key={idx}>
<td>{c.id.substring(0, 5)}</td> <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.status}</td>
<td>{c.from_refresh ? "true" : "false"}</td> <td>{c.from_refresh ? "true" : "false"}</td>
<td>{String(c.ageKeysCount)}</td> <td>{String(c.ageKeysCount)}</td>
@ -496,9 +499,6 @@ function ShowAllCoins({
<td> <td>
<i18n.Translate>denom</i18n.Translate> <i18n.Translate>denom</i18n.Translate>
</td> </td>
<td>
<i18n.Translate>value</i18n.Translate>
</td>
<td> <td>
<i18n.Translate>status</i18n.Translate> <i18n.Translate>status</i18n.Translate>
</td> </td>