Skip to content

Commit

Permalink
OK-23670: fix lightnetwork topup account auto select
Browse files Browse the repository at this point in the history
  • Loading branch information
kwoktung committed Oct 16, 2023
1 parent 9c52f37 commit c1cff99
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions packages/kit/src/views/LightningNetwork/components/LNSwapMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ function LNSwapMenu({
inputNetworkId,
outputNetworkId,
);
if (account) {
if (isWithdraw) {
backgroundApiProxy.serviceSwap.setSendingAccountSimple(account);
} else {
backgroundApiProxy.serviceSwap.setRecipientToAccount(
account,
network,
);
}
}
// if (account) {
// if (isWithdraw) {
// backgroundApiProxy.serviceSwap.setSendingAccountSimple(account);
// } else {
// backgroundApiProxy.serviceSwap.setRecipientToAccount(
// account,
// network,
// );
// }
// }
navigation.getParent()?.navigate(TabRoutes.Swap);
},
[networkId, navigation, account, network],
Expand Down

0 comments on commit c1cff99

Please sign in to comment.