Skip to content

Commit

Permalink
post hook fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rubycop committed Jan 18, 2025
1 parent d8c4930 commit 5d29ec7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,16 +85,17 @@ const PERMISSIONS = {
const storageAccountName = useMemo(() => Storage.privateGet("accountName"));

const checkAccountCreation = async () => {
const web4 = Near.view(`${formFields.accountName}.near`, "web4_get", {
console.log(storageAccountName);
const web4 = Near.view(`${storageAccountName}.near`, "web4_get", {
request: { path: "/" },
});

if (web4) setShowCongratsModal(true);
};

useEffect(async () => {
checkAccountCreation();
}, []);
if (storageAccountName) checkAccountCreation();
}, [storageAccountName]);

function filterMemberByPermission(permission) {
return formFields.members
Expand Down

0 comments on commit 5d29ec7

Please sign in to comment.