Fix cleanText in notification

This commit is contained in:
Bill 2022-07-27 10:05:26 -04:00
parent f9c3b967de
commit bdc912720c

View File

@ -4,7 +4,7 @@ import { useBetween } from 'use-between';
import { GetConfiguration, GetNitroInstance, GetRoomEngine, GetSessionDataManager, LocalizeBadgeName, LocalizeText, NotificationAlertItem, NotificationAlertType, NotificationBubbleItem, NotificationBubbleType, NotificationConfirmItem, PlaySound, ProductImageUtility, TradingNotificationType } from '../../api';
import { useMessageEvent } from '../events';
const cleanText = (text: string) => text.replace(/\\r/g, '\r');
const cleanText = (text: string) => (text && text.length) ? text.replace(/\\r/g, '\r') : '';
const getTimeZeroPadded = (time: number) =>
{