Skip to content

Commit

Permalink
fix: useGetLaunchpadAdmin
Browse files Browse the repository at this point in the history
  • Loading branch information
WaDadidou committed Oct 16, 2024
1 parent 3beae23 commit 6cfb339
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/hooks/launchpad/useGetLaunchpadAdmin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export const useGetLaunchpadAdmin = () => {
const selectedNetworkId = useSelectedNetworkId();
const { setToast } = useFeedbacks();

const { data, ...other } = useQuery<string>(
const { data, ...other } = useQuery<string | undefined>(
["getLaunchpadAdmin", userAddress, selectedNetworkId],
async () => {
try {
Expand Down Expand Up @@ -52,14 +52,13 @@ export const useGetLaunchpadAdmin = () => {

return adminDaoId;
} catch (e: any) {
console.error("Error veryfing Launchpad admin: ", e);
console.error("Error getting Launchpad admin: ", e);
setToast({
mode: "normal",
type: "error",
title: "Error veryfing Launchpad admin",
title: "Error getting Launchpad admin",
message: e.message,
});
return false;
}
},
{
Expand Down

0 comments on commit 6cfb339

Please sign in to comment.