From 955d0a86c17c1b4fca7bb6dc7b07ff73a9ea5d82 Mon Sep 17 00:00:00 2001 From: Ivan Jeremic Date: Fri, 10 Jun 2022 19:00:56 +0200 Subject: [PATCH] Update Show.tsx no need to call fallback() --- src/components/Show/Show.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Show/Show.tsx b/src/components/Show/Show.tsx index 7b401b5..c36229b 100644 --- a/src/components/Show/Show.tsx +++ b/src/components/Show/Show.tsx @@ -11,5 +11,5 @@ export function Show({ fallback, children }: ShowProps): JSX.Element { - return Boolean(when) ? <>{children} : fallback ? fallback() : <> + return <>{Boolean(when) ? children : fallback || null}; }