aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/renderHtml.tsx2
-rw-r--r--src/types.ts2
-rw-r--r--src/wallet.ts1
3 files changed, 3 insertions, 2 deletions
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),