fix linter errors

This commit is contained in:
Gustavo Trott 2024-05-15 08:45:37 -03:00
parent 23e8c110b2
commit e8bfdf7043
2 changed files with 5 additions and 3 deletions

View File

@ -34,8 +34,10 @@ export const generateExportedMessages = (
intl: IntlShape,
): string => {
const welcomeMessage = htmlDecode(welcomeSettings.welcomeMsg);
const welcomeMsgForModerators = welcomeSettings.welcomeMsgForModerators && htmlDecode(welcomeSettings.welcomeMsgForModerators);
const systemMessages = `${welcomeMessage ? `system: ${welcomeMessage}` : ''}\n ${welcomeMsgForModerators ? `system: ${welcomeMsgForModerators}` : ''}\n`;
const welcomeMsgForModerators = welcomeSettings.welcomeMsgForModerators
&& htmlDecode(welcomeSettings.welcomeMsgForModerators);
const systemMessages = `${welcomeMessage ? `system: ${welcomeMessage}` : ''}\n
${welcomeMsgForModerators ? `system: ${welcomeMsgForModerators}` : ''}\n`;
const text = messages.reduce((acc, message) => {
const date = new Date(message.createdAt);

View File

@ -345,7 +345,7 @@ const GuestUsersManagementPanel: React.FC<GuestUsersManagementPanelProps> = ({
{
guestLobbyMessage && guestLobbyMessage !== ''
? <span dangerouslySetInnerHTML={{ __html: guestLobbyMessage }} />
: intl.formatMessage(intlMessages.emptyMessage)
: intl.formatMessage(intlMessages.emptyMessage)
}
&quot;
</i>