Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

uri generated by lisk mobile and desktop at request token #2102

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/modules/RequestToken/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export default function RequestToken() {
const url = new Url('lisk://wallet');

const urlParams = {
modal: 'send',
recipient: currentAccount.metadata.address,
amount: amountValidity === 0 ? amount.value : 0,
recipientChain: recipientApplicationChainID,
Expand Down
5 changes: 3 additions & 2 deletions src/navigation/navigation.utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,15 @@ export function validateDeepLink(url) {

if (!foundLink) return false;

let queryParams = parsedUrl.query;
delete queryParams.modal;

const isSearchParamsValid = Object.keys(parsedUrl.query).every(
(key) => foundLink.validationSchema.properties[key]
);

if (!isSearchParamsValid) return false;

let queryParams = parsedUrl.query;

if (foundLink.paramsTransformer) {
queryParams = foundLink.paramsTransformer(parsedUrl.query);
}
Expand Down