Improve message.

This commit is contained in:
Paulo Gustavo Veiga 2022-03-08 11:03:45 -08:00
parent 4e155448db
commit cc0de5e03c

View File

@ -36,7 +36,7 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
const fetchResult = fetchMapById(mapId); const fetchResult = fetchMapById(mapId);
if (!fetchResult.isLoading) { if (!fetchResult.isLoading) {
if (fetchResult.error) { if (fetchResult.error) {
throw new Error(`User could not be loaded: ${JSON.stringify(fetchResult)}`); throw new Error(`Map information could not be loaded: ${JSON.stringify(fetchResult)}`);
} }
result = fetchResult?.map?.role === 'owner' ? 'edition-owner' : 'edition-editor'; result = fetchResult?.map?.role === 'owner' ? 'edition-owner' : 'edition-editor';
} }