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, intl: IntlShape,
): string => { ): string => {
const welcomeMessage = htmlDecode(welcomeSettings.welcomeMsg); const welcomeMessage = htmlDecode(welcomeSettings.welcomeMsg);
const welcomeMsgForModerators = welcomeSettings.welcomeMsgForModerators && htmlDecode(welcomeSettings.welcomeMsgForModerators); const welcomeMsgForModerators = welcomeSettings.welcomeMsgForModerators
const systemMessages = `${welcomeMessage ? `system: ${welcomeMessage}` : ''}\n ${welcomeMsgForModerators ? `system: ${welcomeMsgForModerators}` : ''}\n`; && htmlDecode(welcomeSettings.welcomeMsgForModerators);
const systemMessages = `${welcomeMessage ? `system: ${welcomeMessage}` : ''}\n
${welcomeMsgForModerators ? `system: ${welcomeMsgForModerators}` : ''}\n`;
const text = messages.reduce((acc, message) => { const text = messages.reduce((acc, message) => {
const date = new Date(message.createdAt); const date = new Date(message.createdAt);

View File

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