Skip to content

Commit

Permalink
Merge pull request #3523 from pillarwallet/fix/crash_paste_token
Browse files Browse the repository at this point in the history
PRO-2253 App crash when pasting token address
  • Loading branch information
lalitkumarrock authored Jun 11, 2024
2 parents 61d8343 + 075f172 commit 0e6ca7b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/screens/Assets/ManageTokenLists.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ export default function () {
};

const isDisabled =
(isEmpty(tokensList) && query) || (!hasAgreedToTerms && !isEmpty(tokensList)) || isLoading || errorMessage;
(isEmpty(tokensList) && !isEmpty(query)) ||
(!hasAgreedToTerms && !isEmpty(tokensList)) ||
isLoading ||
errorMessage;

const buttonTitle = isEmpty(query)
? t('button.paste')
Expand Down

0 comments on commit 0e6ca7b

Please sign in to comment.