From 772cc7f15e02e9bc26e193083a921709c36dd70c Mon Sep 17 00:00:00 2001 From: Sofya Tuymedova Date: Sat, 16 Dec 2023 22:16:06 +0300 Subject: [PATCH] Fix documentation error (#1197) Co-authored-by: Sofia Tuimedova --- docs/reference/utilities.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/utilities.md b/docs/reference/utilities.md index 6ff77eff..8f3672e9 100644 --- a/docs/reference/utilities.md +++ b/docs/reference/utilities.md @@ -42,7 +42,7 @@ const User = object({ ... }) const Bot = object({ ... }) dynamic((value) => { - value.kind === 'user' ? User : Bot + return value.kind === 'user' ? User : Bot }) ```