From 8daf868b784a69e85935873d984fc83a438b611f Mon Sep 17 00:00:00 2001 From: Eric Sizer Date: Tue, 24 Dec 2024 10:06:09 -0500 Subject: [PATCH] return error on root mutation failure --- .../GettingStartedPage/GettingStartedPage.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/web/src/pages/Auth/RegistrationPages/GettingStartedPage/GettingStartedPage.tsx b/apps/web/src/pages/Auth/RegistrationPages/GettingStartedPage/GettingStartedPage.tsx index 5ae0041ba40..fd059e8ec74 100644 --- a/apps/web/src/pages/Auth/RegistrationPages/GettingStartedPage/GettingStartedPage.tsx +++ b/apps/web/src/pages/Auth/RegistrationPages/GettingStartedPage/GettingStartedPage.tsx @@ -410,7 +410,11 @@ const GettingStarted = () => { new Error(notificationResult.error?.toString()), ); }); + } else { + return Promise.reject(new Error(generalResult.error?.toString())); } + + return null; }); const onSubmit = async (