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 }) ```