From 43ff72664c0d84458ecde7c1fe274e08fc4d6e3b Mon Sep 17 00:00:00 2001 From: dafuga Date: Tue, 1 Oct 2024 16:03:52 -0700 Subject: [PATCH] fix: fixed the fee calculation on ram buy page --- src/routes/[network]/(account)/ram/buy/state.svelte.ts | 2 +- src/routes/[network]/(account)/ram/buy/tokens/+page.svelte | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/[network]/(account)/ram/buy/state.svelte.ts b/src/routes/[network]/(account)/ram/buy/state.svelte.ts index d5812c23..8d222546 100644 --- a/src/routes/[network]/(account)/ram/buy/state.svelte.ts +++ b/src/routes/[network]/(account)/ram/buy/state.svelte.ts @@ -75,7 +75,7 @@ export class BuyRAMState { return Serializer.objectify({ payer: this.payer, receiver: this.receiver, - quant: this.bytesValue + quant: this.bytesCost }); } else { return Serializer.objectify({ diff --git a/src/routes/[network]/(account)/ram/buy/tokens/+page.svelte b/src/routes/[network]/(account)/ram/buy/tokens/+page.svelte index 05235004..e1394eaa 100644 --- a/src/routes/[network]/(account)/ram/buy/tokens/+page.svelte +++ b/src/routes/[network]/(account)/ram/buy/tokens/+page.svelte @@ -93,7 +93,7 @@ {#if context.account} {context.account.balance?.liquid} {:else} - 0.0000 {data.network.chain.systemToken.symbol.code} + 0.0000 {data.network.chain.systemToken?.symbol.code || ''} {/if}