This commit is contained in:
Karol Wypchlo 2021-02-09 15:04:44 +01:00
parent e646a9cd3a
commit 96b28518ea
1 changed files with 3 additions and 2 deletions

View File

@ -120,8 +120,9 @@ export default function Recovery({ flow }) {
</button>
</div>
{Boolean(flow.methods.link.config.messages?.length) &&
flow.methods.link.config.messages.map((message) => <Message type={message.type} title={message.text} />)}
{(flow?.messages ?? []).map((message) => (
<Message type={message.type} title={message.text} />
))}
</form>
</div>
</div>