diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-17 14:29:16 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-17 14:29:16 +0100 |
commit | b078844c7f53ba8c674c1658ff1a64c91e11f17a (patch) | |
tree | 56de0698ca453ee4c4ddab34820f6219dee5e9dc | |
parent | 2cb642aac0f7e8342023cfdc8eda83d2dec5f4e0 (diff) |
do not truncate amounts
-rw-r--r-- | manifest.json | 4 | ||||
-rw-r--r-- | src/renderHtml.tsx | 2 | ||||
-rw-r--r-- | src/types.ts | 2 | ||||
-rw-r--r-- | src/wallet.ts | 1 |
4 files changed, 5 insertions, 4 deletions
diff --git a/manifest.json b/manifest.json index 94f02c86b..7217b8668 100644 --- a/manifest.json +++ b/manifest.json @@ -4,8 +4,8 @@ "name": "GNU Taler Wallet (git)", "description": "Privacy preserving and transparent payments", "author": "GNU Taler Developers", - "version": "0.6.28", - "version_name": "0.1.4", + "version": "0.6.29", + "version_name": "0.1.5", "minimum_chrome_version": "49", "minimum_opera_version": "36", diff --git a/src/renderHtml.tsx b/src/renderHtml.tsx index fe6646196..c858a8842 100644 --- a/src/renderHtml.tsx +++ b/src/renderHtml.tsx @@ -25,7 +25,7 @@ import {AmountJson, Contract, Amounts} from "./types"; export function prettyAmount(amount: AmountJson) { let v = amount.value + amount.fraction / Amounts.fractionalBase; - return `${v.toFixed(2)} ${amount.currency}`; + return `${v} ${amount.currency}`; } export function renderContract(contract: Contract): JSX.Element { diff --git a/src/types.ts b/src/types.ts index 9de769dfe..b04453767 100644 --- a/src/types.ts +++ b/src/types.ts @@ -509,7 +509,7 @@ export type PayCoinInfo = Array<{ updatedCoin: CoinRecord, sig: CoinPaySig }>; export namespace Amounts { - export const fractionalBase = 1e6; + export const fractionalBase = 1e8; export interface Result { amount: AmountJson; diff --git a/src/wallet.ts b/src/wallet.ts index 354072130..658b00539 100644 --- a/src/wallet.ts +++ b/src/wallet.ts @@ -728,6 +728,7 @@ export class Wallet { private async processPreCoin(preCoin: PreCoinRecord, retryDelayMs = 200): Promise<void> { + return; if (this.processPreCoinConcurrent >= 1) { console.log("delaying processPreCoin"); setTimeout(() => this.processPreCoin(preCoin, retryDelayMs * 2), |