mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-07 22:20:03 +00:00
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:
@@ -231,7 +231,7 @@ const initiateCheckout = async (tierKey: TierKey) => {
|
||||
)
|
||||
}
|
||||
|
||||
return response.json()
|
||||
return await response.json()
|
||||
}
|
||||
|
||||
const handleSubscribe = wrapWithErrorHandlingAsync(
|
||||
|
||||
Reference in New Issue
Block a user