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

Fix JWT fetch request and correct “occured” typo to “occurred” #492

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions apps/web/src/app/api/upload-key/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ export async function POST(request: NextRequest): Promise<NextResponse> {
body: JSON.stringify(keyRestrictions),
}

const jwtRepsonse = await fetch(
const jwtResponse = await fetch(
'https://api.pinata.cloud/users/generateApiKey',
options
)
const json = await jwtRepsonse.json()
const json = await jwtResponse.json()
const { JWT } = json
return NextResponse.json({ JWT }, { status: 200 })
} catch (e) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export const MigrateDAOForm = () => {
</Button>
{error && (
<Box mt="x4" color="negative">
An unexpected error has occured please try again
An unexpected error has occurred please try again
</Box>
)}
</Flex>
Expand Down