Skip to content

Commit

Permalink
Merge pull request #940 from Koniverse/issue-815
Browse files Browse the repository at this point in the history
[Issue-939]: Bug related to Send fund
  • Loading branch information
nguyenduythuc authored Aug 12, 2023
2 parents 3204f22 + 082f516 commit 84a2020
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/screens/Transaction/SendFundV2/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -575,11 +575,16 @@ export const SendFund = ({
toValue,
item.originChain,
);
if (viewStep === 2 && isSameAddress(fromValue, toValue)) {

if (viewStep === 2) {
if (currentDestChainItems.some(destChainItem => destChainItem.slug === item.originChain)) {
setValue('destChain', item.originChain);
} else {
setValue('destChain', '');
if (currentDestChainItems.length === 1) {
setValue('destChain', currentDestChainItems[0].slug);
} else {
setValue('destChain', '');
}
}
} else {
setValue('destChain', item.originChain);
Expand Down Expand Up @@ -880,6 +885,7 @@ export const SendFund = ({
title={viewStep === 1 ? title : 'Amount'}
onPressBack={onSubheaderPressBack}
disabled={loading}
titleTextAlign={'left'}
/>
</View>

Expand Down

0 comments on commit 84a2020

Please sign in to comment.