From 7fed4b931d87749b676eac9d74d7da140910f3e4 Mon Sep 17 00:00:00 2001 From: kurt Date: Mon, 28 Oct 2024 10:03:02 +0800 Subject: [PATCH] fix some error --- .../(account)/resources/components/renting.svelte | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/routes/[network]/(account)/resources/components/renting.svelte b/src/routes/[network]/(account)/resources/components/renting.svelte index f15d721f..ba62e166 100644 --- a/src/routes/[network]/(account)/resources/components/renting.svelte +++ b/src/routes/[network]/(account)/resources/components/renting.svelte @@ -76,6 +76,11 @@ } }); + let cpuAmountInput: NumberInput | undefined = $state(); + let netAmountInput: NumberInput | undefined = $state(); + let receiverNameInput: NameInput | undefined = $state(); + + const rentState: RentState = $state(new RentState(network.chain, rentType)); const rentDetails = $derived.by(() => { const details = []; details.push({ title: 'Usable for', desc: usableTime }); @@ -86,11 +91,6 @@ return details; }); - let cpuAmountInput: NumberInput | undefined = $state(); - let netAmountInput: NumberInput | undefined = $state(); - let receiverNameInput: NameInput | undefined = $state(); - - const rentState: RentState = $state(new RentState(network.chain, rentType)); const precision = 2; //0ebca2f19920514cb7d1f31f04cbfd279788a06671dd1260b7c00a259e2e85ad let transactionId: Checksum256 | undefined = $state(); @@ -167,7 +167,7 @@ - {#if rentState.rentingForSelf} + {#if !rentState.rentingForSelf}
{detail.title} {detail.desc} - s + {/each}