Skip to content

Commit

Permalink
Add error message for dao creation (#671)
Browse files Browse the repository at this point in the history
Signed-off-by: Manank Patni <[email protected]>
  • Loading branch information
Man-Jain authored Sep 22, 2023
1 parent af626f6 commit 15cd816
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/modules/lite/creator/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ export const CommunityCreator: React.FC = () => {
}

const resp = await saveLiteCommunity(signature, publicKey, payloadBytes)

const response = await resp.json()
if (resp.ok) {
openNotification({
message: "Community created!",
Expand All @@ -431,13 +431,14 @@ export const CommunityCreator: React.FC = () => {
navigate.push("/explorer")
} else {
openNotification({
message: "Community could not be created!",
message: response.message,
autoHideDuration: 3000,
variant: "error"
})
return
}
} catch (error) {
console.log("error: ", error)
openNotification({
message: "Community could not be created!",
autoHideDuration: 3000,
Expand Down
2 changes: 1 addition & 1 deletion src/services/contracts/baseDAO/hooks/useOriginate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ export const useOriginate = (template: DAOTemplate) => {
description: params.orgSettings.description,
linkToTerms: contract.address,
picUri: "",
members: [],
members: [account],
polls: [],
tokenAddress: params.orgSettings.governanceToken.address,
tokenType: "FA2",
Expand Down

0 comments on commit 15cd816

Please sign in to comment.