A Prediction Market on the AT Protocol

feat(auth-context-provider.tsx): text normalisation for login

Ciaran fc073ac7 7591382a

+1 -1
+1 -1
src/web/providers/auth-context-provider.tsx
··· 60 60 </header> 61 61 <div className="flex-1"> 62 62 {showLoginForm && <form onSubmit={handleSubmit} className="mt-2 max-w-sm mx-auto flex flex-col gap-2"> 63 - <Input value={identifier} onChange={(e) => setIdentifier(e.target.value)} autoComplete="username" placeholder="username.com" /> 63 + <Input value={identifier} onChange={(e) => setIdentifier(e.target.value.toLowerCase().replaceAll(" ", ""))} autoComplete="username" placeholder="username.com" /> 64 64 <Button disabled={isLoginLoading} size="sm" type="submit"> 65 65 {isLoginLoading && <Spinner />} 66 66 Login