From 27f580b4fa666a1a40b324af36126e66f5233041 Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Mon, 7 Mar 2022 19:10:09 -0800 Subject: [PATCH] Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.Add debug on user loading error.Add debug on user loading error. --- packages/webapp/src/components/editor-page/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webapp/src/components/editor-page/index.tsx b/packages/webapp/src/components/editor-page/index.tsx index 29d494a9..c21dac84 100644 --- a/packages/webapp/src/components/editor-page/index.tsx +++ b/packages/webapp/src/components/editor-page/index.tsx @@ -36,7 +36,7 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => { const fetchResult = fetchMapById(mapId); if (!fetchResult.isLoading) { if (fetchResult.error) { - throw new Error(`User could not be loaded: ${JSON.stringify(fetchResult.error)} - ${fetchResult.error}`); + throw new Error(`User could not be loaded: ${JSON.stringify(fetchResult)}`); } result = fetchResult?.map?.role === 'owner' ? 'edition-owner' : 'edition-editor'; }