fix linter errors
This commit is contained in:
parent
23e8c110b2
commit
e8bfdf7043
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user