Skip to content

Commit

Permalink
Await for web4 result (#276)
Browse files Browse the repository at this point in the history
  • Loading branch information
rubycop authored Jan 30, 2025
1 parent bee589a commit 54b0593
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,13 @@ const storageAccountName = useMemo(() => Storage.privateGet("accountName"));

const checkAccountCreation = async () => {
console.log(storageAccountName);
const web4 = Near.view(`${storageAccountName}.near`, "web4_get", {

Near.asyncView(`${storageAccountName}.near`, "web4_get", {
request: { path: "/" },
}).then((web4) => {
console.log(web4);
if (web4) setShowCongratsModal(true);
});

if (web4) setShowCongratsModal(true);
};

useEffect(async () => {
Expand Down

0 comments on commit 54b0593

Please sign in to comment.