Skip to content

Commit

Permalink
fix: sign with correct wallet (#2982)
Browse files Browse the repository at this point in the history
* fix: sign with correct wallet

* fix: native token balance
  • Loading branch information
sokolova-an authored Jan 16, 2025
1 parent 3c07aca commit 14aa623
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export const TransferRules = {
{
amount,
asset: network.asset,
balance: isXcm ? balance.native : balance.balance,
balance: isXcm || !isNative ? balance.native : balance.balance,
xcmFee,
fee,
isNative,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const TransactionDetails = memo(({ wallets, chain, proxied, initiator, si

const initiatorWallet = useMemo(() => {
return walletUtils.getWalletFilteredAccounts(wallets, {
accountFn: a => a.accountId === initiator[0]?.accountId,
accountFn: a => a.id === initiator?.[0]?.id,
});
}, [wallets, initiator]);

Expand Down

0 comments on commit 14aa623

Please sign in to comment.