From 40137b15fa3bfcf5fd85dee3dfce002e94f51b90 Mon Sep 17 00:00:00 2001 From: MathieuG-P <40181755+Zagrios@users.noreply.github.com> Date: Sun, 9 Apr 2023 16:51:34 +0200 Subject: [PATCH] [bugfix-205] remove spaces in guard code --- .../components/modal/modal-types/guard-modal.component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/components/modal/modal-types/guard-modal.component.tsx b/src/renderer/components/modal/modal-types/guard-modal.component.tsx index 80ace020..6c2e0d1e 100644 --- a/src/renderer/components/modal/modal-types/guard-modal.component.tsx +++ b/src/renderer/components/modal/modal-types/guard-modal.component.tsx @@ -21,7 +21,7 @@ export const GuardModal: ModalComponent = ({resolver}) => {
- setGuardCode(e.target.value.toUpperCase())} value={guardCode} type="guard" name="guard" id="guard" placeholder={t("modals.guard.inputs.guard-code.placeholder")}/> + setGuardCode(e.target.value.toUpperCase().replaceAll(" ", ""))} value={guardCode} type="guard" name="guard" id="guard" placeholder={t("modals.guard.inputs.guard-code.placeholder")}/>
{resolver({exitCode: ModalExitCode.CANCELED})}} withBar={false} text="misc.cancel"/>