Fix role resolution issue.

This commit is contained in:
Paulo Gustavo Veiga 2022-03-17 15:41:32 -03:00
parent f5600cbe6e
commit 8907452bc5

View File

@ -42,7 +42,7 @@ const EditorPage = ({ isTryMode }: EditorPropsType): React.ReactElement => {
if (!fetchResult.map) {
throw new Error(`Map info could not be loaded. Info not present: ${JSON.stringify(fetchResult)}`);
}
result = fetchResult.map.role === 'owner' ? 'edition-owner' : 'edition-editor';
result = `edition-${fetchResult.map.role}`;
}
}
return result;