From 5b236c1c27f1091a5c982b9b1525a08ad178f89c Mon Sep 17 00:00:00 2001 From: harshit Mishra Date: Mon, 8 Jan 2024 19:45:02 +0530 Subject: [PATCH] implemented optional chaning --- library/src/components/Tags.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/components/Tags.tsx b/library/src/components/Tags.tsx index 4107c53aa..3cc94fe7a 100644 --- a/library/src/components/Tags.tsx +++ b/library/src/components/Tags.tsx @@ -8,7 +8,7 @@ interface Props { } export const Tags: React.FunctionComponent = ({ tags }) => { - if (!tags || !tags.length) { + if (!tags?.length) { return null; }