From 65bbbf53ee73f7b72c1531d03d3943eb82b78e99 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sat, 19 Nov 2016 21:31:36 +0100 Subject: [PATCH] write to db if coins are not offered anymore --- src/pages/tree.tsx | 1 + src/wallet.ts | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/pages/tree.tsx b/src/pages/tree.tsx index 1dcbc5f9b..9eca80636 100644 --- a/src/pages/tree.tsx +++ b/src/pages/tree.tsx @@ -288,6 +288,7 @@ class DenominationList extends ImplicitStateComponent { return (
    +
  • Offered: {d.isOffered ? "yes" : "no"}
  • Value: {prettyAmount(d.value)}
  • Withdraw fee: {prettyAmount(d.feeWithdraw)}
  • Refresh fee: {prettyAmount(d.feeRefresh)}
  • diff --git a/src/wallet.ts b/src/wallet.ts index 902599beb..932d61eda 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -1261,6 +1261,8 @@ export class Wallet { await this.q() .putAll(Stores.denominations, Object.keys(newDenoms).map((d) => newDenoms[d])) + .putAll(Stores.denominations, + Object.keys(existingDenoms).map((d) => existingDenoms[d])) .finish(); return exchangeInfo; }