Skip to content

Commit

Permalink
Update packages/widget/src/controllers/transfers/fungible-token-trans…
Browse files Browse the repository at this point in the history
…fer.ts

Co-authored-by: Filip Štoković <[email protected]>
  • Loading branch information
wainola and sztok7 authored Jun 7, 2024
1 parent 8cad80c commit f3f6cc6
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,10 @@ export class FungibleTokenTransferController implements ReactiveController {
return true;
}
case Network.SUBSTRATE: {
const substrateProvider = this.sourceSubstrateProvider;
const substrateAddress =
this.walletContext.value?.substrateWallet?.signerAddress;
if (!substrateProvider || !substrateAddress) return false;
return true;
return !!(
this.sourceSubstrateProvider &&
this.walletContext.value?.substrateWallet?.signerAddress
);
}
}
}
Expand Down

0 comments on commit f3f6cc6

Please sign in to comment.