Skip to content

Commit

Permalink
bugfix/qr code (#2019)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino authored Nov 30, 2020
1 parent e9aacf9 commit 993b3b6
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions app/core/DeeplinkManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,20 @@ class DeeplinkManager {
}

const functionName = ethUrl.function_name;
if (!functionName || functionName === 'transfer') {
if (!functionName) {
const txMeta = { ...ethUrl, source: url };
if (ethUrl.parameters?.value || ethUrl.parameters?.uint256) {
if (ethUrl.parameters?.value) {
this.navigation.navigate('SendView', {
txMeta: { ...txMeta, action: !functionName ? 'send-eth' : 'send-token' }
txMeta: { ...txMeta, action: 'send-eth' }
});
} else {
this.navigation.navigate('SendFlowView', { txMeta });
}
} else if (functionName === 'transfer') {
const txMeta = { ...ethUrl, source: url };
this.navigation.navigate('SendView', {
txMeta: { ...txMeta, action: 'send-token' }
});
} else if (functionName === 'approve') {
// add approve transaction
const {
Expand Down

0 comments on commit 993b3b6

Please sign in to comment.