Skip to content

Commit

Permalink
Merge pull request #758 from liquity/fix-known-initiatives-fetching
Browse files Browse the repository at this point in the history
fix: 405 when fetching known initiatives
  • Loading branch information
danielattilasimon authored Jan 23, 2025
2 parents ed7fa45 + 2a9be35 commit 338331a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions frontend/app/src/liquity-governance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,9 +246,7 @@ export function useKnownInitiatives() {
if (KNOWN_INITIATIVES_URL === undefined) {
throw new Error("KNOWN_INITIATIVES_URL is not defined");
}
const response = await fetch(KNOWN_INITIATIVES_URL, {
headers: { "Content-Type": "application/json" },
});
const response = await fetch(KNOWN_INITIATIVES_URL);
return v.parse(KnownInitiativesSchema, await response.json());
},
enabled: KNOWN_INITIATIVES_URL !== undefined,
Expand Down

0 comments on commit 338331a

Please sign in to comment.