This commit is contained in:
Karol Wypchlo 2021-02-08 18:37:07 +01:00
parent c6b992b34e
commit e99becb144
2 changed files with 4 additions and 4 deletions

View File

@ -125,9 +125,9 @@ export default function Login({ flow }) {
/> />
</div> </div>
{Boolean(field.errors?.length) && ( {Boolean(field.messages?.length) && (
<div className="mt-2"> <div className="mt-2">
<Message items={field.errors.map(({ message }) => message)} /> <Message items={field.messages.map(({ context }) => context.text)} />
</div> </div>
)} )}
</div> </div>

View File

@ -132,9 +132,9 @@ export default function Registration({ flow }) {
value={formik.values[field.name]} value={formik.values[field.name]}
className="appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-green-500 focus:border-green-500 sm:text-sm" className="appearance-none block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm placeholder-gray-400 focus:outline-none focus:ring-green-500 focus:border-green-500 sm:text-sm"
/> />
{Boolean(field.errors?.length) && ( {Boolean(field.messages?.length) && (
<div className="mt-2"> <div className="mt-2">
<Message items={field.errors.map(({ message }) => message)} /> <Message items={field.messages.map(({ context }) => context.text)} />
</div> </div>
)} )}
</div> </div>