diff --git a/src/components/room/widgets/infostand/InfoStandWidgetUserView.tsx b/src/components/room/widgets/infostand/InfoStandWidgetUserView.tsx index 60b97b31..6846e60d 100644 --- a/src/components/room/widgets/infostand/InfoStandWidgetUserView.tsx +++ b/src/components/room/widgets/infostand/InfoStandWidgetUserView.tsx @@ -25,7 +25,7 @@ export const InfoStandWidgetUserView: FC = props = const saveMotto = (motto: string) => { - if(!isEditingMotto || (motto.length > 38)) return; + if(!isEditingMotto || (motto.length > GetConfiguration('motto.max.legnth', 38))) return; widgetHandler.processWidgetMessage(new RoomWidgetChangeMottoMessage(motto)); @@ -195,7 +195,7 @@ export const InfoStandWidgetUserView: FC = props = { !isEditingMotto && setIsEditingMotto(true) }>{ motto }  } { isEditingMotto && - setMotto(event.target.value) } onBlur={ onMottoBlur } onKeyDown={ onMottoKeyDown } autoFocus={ true } /> } + ('motto.max.legnth', 38) } value={ motto } onChange={ event => setMotto(event.target.value) } onBlur={ onMottoBlur } onKeyDown={ onMottoKeyDown } autoFocus={ true } /> } }