diff --git a/packages/desktop/components/ManaBox.svelte b/packages/desktop/components/ManaBox.svelte index f0bbe47d6eb..d6d463cdae7 100644 --- a/packages/desktop/components/ManaBox.svelte +++ b/packages/desktop/components/ManaBox.svelte @@ -9,6 +9,7 @@ export let transactionInfo: ITransactionInfoToCalculateManaCost export let hasEnoughMana: boolean + export let refreshTransactionInfo: () => Promise = () => Promise.resolve() export let showCountdown: boolean = true export let outputId: string | undefined = undefined @@ -57,6 +58,11 @@ secondsRemainingCountdownInterval = setInterval(() => { secondsRemaining -= 1 if (secondsRemaining <= 0) { + refreshTransactionInfo() + .then(() => { + calculateManaCost() + }) + .catch((err) => console.error(err)) clearInterval(secondsRemainingCountdownInterval) } }, MILLISECONDS_PER_SECOND) @@ -92,7 +98,11 @@ refreshManaCountdownInterval = setInterval(() => { secondsToRefreshManaCost -= 1 if (secondsToRefreshManaCost <= 0) { - calculateManaCost() + refreshTransactionInfo() + .then(() => { + calculateManaCost() + }) + .catch((err) => console.error(err)) secondsToRefreshManaCost = NUMBER_OF_EXTRA_SLOTS_MANA * DEFAULT_SECONDS_PER_SLOT } }, MILLISECONDS_PER_SECOND) diff --git a/packages/desktop/components/popups/ActivityDetailsPopup.svelte b/packages/desktop/components/popups/ActivityDetailsPopup.svelte index ddb2922373f..1a33c326a00 100644 --- a/packages/desktop/components/popups/ActivityDetailsPopup.svelte +++ b/packages/desktop/components/popups/ActivityDetailsPopup.svelte @@ -168,7 +168,7 @@ {#if !isTimelocked && isActivityIncomingAndUnclaimed}
- + {#if hasMainAccountNegativeBIC} {/if} diff --git a/packages/desktop/components/popups/AllotManaPopup.svelte b/packages/desktop/components/popups/AllotManaPopup.svelte index b92ccaa95c7..6e1bfc646c1 100644 --- a/packages/desktop/components/popups/AllotManaPopup.svelte +++ b/packages/desktop/components/popups/AllotManaPopup.svelte @@ -159,7 +159,7 @@ {error} {/if} {#if displayManaBox} - + {/if}
diff --git a/packages/desktop/components/popups/BurnNativeTokensConfirmationPopup.svelte b/packages/desktop/components/popups/BurnNativeTokensConfirmationPopup.svelte index ef6a3a09904..bc9b1aef46b 100644 --- a/packages/desktop/components/popups/BurnNativeTokensConfirmationPopup.svelte +++ b/packages/desktop/components/popups/BurnNativeTokensConfirmationPopup.svelte @@ -84,7 +84,7 @@ - + {#if hasMainAccountNegativeBIC} {/if} diff --git a/packages/desktop/components/popups/BurnNftPopup.svelte b/packages/desktop/components/popups/BurnNftPopup.svelte index c855132b699..a4945d86552 100644 --- a/packages/desktop/components/popups/BurnNftPopup.svelte +++ b/packages/desktop/components/popups/BurnNftPopup.svelte @@ -73,7 +73,7 @@
{localize('actions.confirmNftBurn.description')} - +
diff --git a/packages/desktop/components/popups/ClaimDelegationRewardsPopup.svelte b/packages/desktop/components/popups/ClaimDelegationRewardsPopup.svelte index 613a6483c06..8355cdb0343 100644 --- a/packages/desktop/components/popups/ClaimDelegationRewardsPopup.svelte +++ b/packages/desktop/components/popups/ClaimDelegationRewardsPopup.svelte @@ -98,7 +98,7 @@ keyText={localize('popups.claimDelegationRewards.rewards')} valueText={formatTokenAmountBestMatch(Math.round(rewards), DEFAULT_MANA)} /> - + {#if hasMainAccountNegativeBIC} {/if} diff --git a/packages/desktop/components/popups/ConsolidateOutputsPopup.svelte b/packages/desktop/components/popups/ConsolidateOutputsPopup.svelte index 9bafffeb983..be16412a44e 100644 --- a/packages/desktop/components/popups/ConsolidateOutputsPopup.svelte +++ b/packages/desktop/components/popups/ConsolidateOutputsPopup.svelte @@ -86,7 +86,7 @@
{#if displayManaBox} - + {/if} {#if hasMainAccountNegativeBIC} diff --git a/packages/desktop/components/popups/CreateDelegationPopup.svelte b/packages/desktop/components/popups/CreateDelegationPopup.svelte index e020a018946..29e226285cc 100644 --- a/packages/desktop/components/popups/CreateDelegationPopup.svelte +++ b/packages/desktop/components/popups/CreateDelegationPopup.svelte @@ -166,7 +166,7 @@ {addressError} {/if} {#if displayManaBox} - + {/if} {#if hasMainAccountNegativeBIC} diff --git a/packages/desktop/components/popups/MintNativeTokenConfirmationPopup.svelte b/packages/desktop/components/popups/MintNativeTokenConfirmationPopup.svelte index 1142a21fa98..e00e67f2dbf 100644 --- a/packages/desktop/components/popups/MintNativeTokenConfirmationPopup.svelte +++ b/packages/desktop/components/popups/MintNativeTokenConfirmationPopup.svelte @@ -168,7 +168,7 @@ isCopyable={value.isCopyable} /> {/each} - + {/if}
diff --git a/packages/desktop/components/popups/MintNftConfirmationPopup.svelte b/packages/desktop/components/popups/MintNftConfirmationPopup.svelte index fb7340805a2..4aca4772a46 100644 --- a/packages/desktop/components/popups/MintNftConfirmationPopup.svelte +++ b/packages/desktop/components/popups/MintNftConfirmationPopup.svelte @@ -156,7 +156,7 @@ isPreText /> {/if} - + {#if hasMainAccountNegativeBIC} diff --git a/packages/desktop/components/popups/send/SendConfirmationPopup.svelte b/packages/desktop/components/popups/send/SendConfirmationPopup.svelte index ad75ab4c9e7..7f7eb3f6b7b 100644 --- a/packages/desktop/components/popups/send/SendConfirmationPopup.svelte +++ b/packages/desktop/components/popups/send/SendConfirmationPopup.svelte @@ -269,7 +269,7 @@ />
{/if} - + {/if} {#if surplus} diff --git a/packages/desktop/views/dashboard/wallet/views/implicit-account-creation-multistep/AccountCreationView.svelte b/packages/desktop/views/dashboard/wallet/views/implicit-account-creation-multistep/AccountCreationView.svelte index 3b5d175ef7d..e5bfa7ecd53 100644 --- a/packages/desktop/views/dashboard/wallet/views/implicit-account-creation-multistep/AccountCreationView.svelte +++ b/packages/desktop/views/dashboard/wallet/views/implicit-account-creation-multistep/AccountCreationView.svelte @@ -117,7 +117,12 @@ keyText={localize('views.implicit-account-creation.steps.step2.view.generatedMana')} valueText={formattedManaBalance} /> - + prepareTransaction(selectedOutput?.outputId)} + /> - + prepareTransaction(selectedOutput.outputId)} + /> {/if} diff --git a/packages/desktop/views/onboarding/views/restore-profile/views/ClaimFinderView.svelte b/packages/desktop/views/onboarding/views/restore-profile/views/ClaimFinderView.svelte index bb5227627b6..2959eed3021 100644 --- a/packages/desktop/views/onboarding/views/restore-profile/views/ClaimFinderView.svelte +++ b/packages/desktop/views/onboarding/views/restore-profile/views/ClaimFinderView.svelte @@ -286,7 +286,7 @@ {localize(`actions.${hasTriedClaimingRewards ? 'rerunClaimProcess' : 'claimRewards'}`)} {/if} - + {#if hasMainAccountNegativeBIC} {/if}