Skip to content

Commit

Permalink
[feat] run useChangeSenderAddressWhenEtherMintChainSendToHexAddress o…
Browse files Browse the repository at this point in the history
…nly sendType is send
  • Loading branch information
blacktoast committed Feb 14, 2025
1 parent 9667292 commit 657b4cb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/extension/src/pages/send/amount/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,11 @@ function useChangeSenderAddressWhenEtherMintChainSendToHexAddress(
isEVMOnlyChain: boolean,
account: AccountSetBase & CosmosAccount & CosmwasmAccount & SecretAccount,
setIsEvmTx: React.Dispatch<React.SetStateAction<boolean>>,
ethereumAccount: EthereumAccountBase
ethereumAccount: EthereumAccountBase,
sendType: SendType
) {
useEffect(() => {
if (isEvmChain) {
if (isEvmChain && sendType === "send") {
const sendingDenomHelper = new DenomHelper(
sendConfigs.amountConfig.currency.coinMinimalDenom
);
Expand Down Expand Up @@ -608,7 +609,8 @@ export const SendAmountPage: FunctionComponent = observer(() => {
isEVMOnlyChain,
account,
setIsEvmTx,
ethereumAccount
ethereumAccount,
sendType
);

useEffect(() => {
Expand Down

0 comments on commit 657b4cb

Please sign in to comment.