diff --git a/components/screen-employee-sign-in/screen-employee-sign-in.component.jsx b/components/screen-employee-sign-in/screen-employee-sign-in.component.jsx index 9b7398e..9c29066 100644 --- a/components/screen-employee-sign-in/screen-employee-sign-in.component.jsx +++ b/components/screen-employee-sign-in/screen-employee-sign-in.component.jsx @@ -45,7 +45,9 @@ export function EmployeeSignIn({ initialValues={{ employeeId: "", pin: "" }} onSubmit={formSubmit} > - {({ handleChange, handleBlur, handleSubmit, values }) => ( + {({ handleChange, handleBlur, handleSubmit, values }) => { +const signingErrorMsg = signingError ? () : null; + return( - {signingError && } + {signingErrorMsg} - )} + ) +}}