mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 06:58:30 +01:00
Fixes missing if statement
This commit is contained in:
@@ -91,8 +91,10 @@ const InputArea = (props, context) => {
|
||||
maxLength={max_length}
|
||||
onEscape={() => act('cancel')}
|
||||
onEnter={(event) => {
|
||||
act('submit', { entry: input });
|
||||
event.preventDefault();
|
||||
if (enter_submit) {
|
||||
act('submit', { entry: input });
|
||||
event.preventDefault();
|
||||
}
|
||||
}}
|
||||
onInput={(_, value) => onType(value)}
|
||||
placeholder="Type something..."
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user