fix: await JSON parsing in checkout API call

Ensures parsing errors are caught by surrounding try-catch for
consistent error handling
This commit is contained in:
bymyself
2025-12-11 00:49:44 -08:00
parent 65a6cca6d7
commit b6f73a1121

View File

@@ -231,7 +231,7 @@ const initiateCheckout = async (tierKey: TierKey) => {
)
}
return response.json()
return await response.json()
}
const handleSubscribe = wrapWithErrorHandlingAsync(