Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add error message for dao creation #671

Merged
merged 1 commit into from
Sep 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading