Fix types for fetch #19
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
EAS GraphQL API wraps response in
data
while metadata doesn't.Update
utils/fetchAttestations
with the wrapping data (r.data.data...
)easy-retro-pgf/src/utils/fetchAttestations.ts
Lines 66 to 80 in fb4e971
Update
utils/fetch
toreturn (await r.json()) as T
https://github.com/gitcoinco/easy-retro-pgf/blob/main/src/utils/fetch.ts#L20
The text was updated successfully, but these errors were encountered: