fix api url

This commit is contained in:
Karol Wypchlo 2021-02-08 18:42:23 +01:00
parent 6c056febbe
commit 203d12b287
2 changed files with 2 additions and 2 deletions

View File

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

View File

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