Skip to content

Commit

Permalink
fix: resetting storage deposit on send confirmation popup (#7494)
Browse files Browse the repository at this point in the history
Co-authored-by: Begoña Álvarez de la Cruz <[email protected]>
  • Loading branch information
brancoder and begonaalvarezd authored Sep 29, 2023
1 parent 272567a commit b99ef1f
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
export let _onMount: (..._: any[]) => Promise<void> = async () => {}
export let disableBack = false
export let isCallbackFromUnlockStronghold: boolean = false
export let calculatedStorageDeposit: number = 0
let {
recipient,
Expand All @@ -57,7 +58,7 @@
layer2Parameters,
} = get(newTransactionDetails)
let storageDeposit = 0
let storageDeposit = calculatedStorageDeposit
let minimumStorageDeposit = 0
let preparedOutput: Output
let expirationTimePicker: ExpirationTimePicker
Expand Down Expand Up @@ -193,7 +194,7 @@
ledgerPreparedOutput.set(preparedOutput)
}
updatePopupProps({ isCallbackFromUnlockStronghold: true })
updatePopupProps({ isCallbackFromUnlockStronghold: true, calculatedStorageDeposit: storageDeposit })
await checkActiveProfileAuth(sendOutputAndClosePopup, { stronghold: true, ledger: false })
} catch (err) {
handleError(err)
Expand Down

0 comments on commit b99ef1f

Please sign in to comment.