Skip to content

Commit

Permalink
Merge pull request #1264 from rainlanguage/2025-02-11-token-info-error
Browse files Browse the repository at this point in the history
Fix unhandled get token info error
  • Loading branch information
hardyjosh authored Feb 11, 2025
2 parents f1d4d1f + 2d69e71 commit 90f2feb
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,14 @@
let checking = false;
onMount(async () => {
const currentToken = await gui?.getTokenInfo(tokenKey);
if (currentToken?.address) {
inputValue = currentToken.address;
getInfoForSelectedToken();
try {
const currentToken = await gui?.getTokenInfo(tokenKey);
if (currentToken?.address) {
inputValue = currentToken.address;
getInfoForSelectedToken();
}
} catch {
// do nothing
}
});
Expand Down

0 comments on commit 90f2feb

Please sign in to comment.