Skip to content

Commit

Permalink
fix: send to other account
Browse files Browse the repository at this point in the history
  • Loading branch information
AbstractFruitFactory committed Dec 20, 2022
1 parent 901fefe commit 39143fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/routes/send-tokens/SendTokenForm.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
let selectedToAccount = { address: '', label: '' }
const handleSelectToAccount = (nextSelected: OptionsType) => {
otherAccount = ''
selectedToAccount = nextSelected
}
Expand Down Expand Up @@ -150,14 +151,14 @@
<Box justify="end">
<Button
disabled={!selectedFromAccount.address ||
!selectedToAccount?.address ||
!(selectedToAccount?.address || otherAccount.length > 0) ||
!amountToSend ||
!selectedBalance?.address}
on:click={() =>
onSend({
resource: selectedBalance.address,
fromAccount: selectedFromAccount.address,
toAccount: selectedToAccount.address || otherAccount,
toAccount: otherAccount || selectedToAccount.address,
amount: Number(amountToSend)
})}>Send</Button
>
Expand Down

0 comments on commit 39143fa

Please sign in to comment.