From 791e86d759aa018376ac15be4960dcd02fb008ff Mon Sep 17 00:00:00 2001 From: ikprk Date: Thu, 27 Jun 2024 12:54:12 +0200 Subject: [PATCH] Quick fix for the validation --- packages/atlas/src/hooks/useYppModalHandlers.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/atlas/src/hooks/useYppModalHandlers.ts b/packages/atlas/src/hooks/useYppModalHandlers.ts index b51cc1292e..5f592d2b0b 100644 --- a/packages/atlas/src/hooks/useYppModalHandlers.ts +++ b/packages/atlas/src/hooks/useYppModalHandlers.ts @@ -94,7 +94,9 @@ export const useYppModalHandlers = () => { displaySnackbar({ iconType: 'error', title: 'Ops, something went wrong', - description: e.response.data.message ?? `We couldn't verify your ownership. Please, try again.`, + description: + JSON.stringify(e.response.data.message.map((err: { message: string }) => err.message).join(', \n')) ?? + `We couldn't verify your ownership. Please, try again.`, }) SentryLogger.error('Error validating YT ownership', 'useYppSetupModalHandlers', e) throw e