mirror of
https://github.com/aaronpo97/the-biergarten-app.git
synced 2026-02-16 10:42:08 +00:00
add isSubmitting state to BeerForm
This commit is contained in:
@@ -27,7 +27,7 @@ const sendCreateBeerPostRequest = async (
|
||||
const parsedPayload = beerPostQueryResultSchema.safeParse(payload);
|
||||
|
||||
if (!parsedPayload.success) {
|
||||
throw new Error('Invalid API response');
|
||||
throw new Error('Invalid API response payload');
|
||||
}
|
||||
|
||||
return parsedPayload.data;
|
||||
|
||||
Reference in New Issue
Block a user