From 1727c168c6f7329f3fb67aa694e0ed815c3b8d14 Mon Sep 17 00:00:00 2001 From: "Collin M. Barrett" Date: Sun, 1 Sep 2019 16:01:13 -0500 Subject: [PATCH] handle null check within component --- .../src/components/SubscribeButtons.tsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/FilterLists.Web.V2/src/components/SubscribeButtons.tsx b/src/FilterLists.Web.V2/src/components/SubscribeButtons.tsx index ae00708bc..fd2bd453e 100644 --- a/src/FilterLists.Web.V2/src/components/SubscribeButtons.tsx +++ b/src/FilterLists.Web.V2/src/components/SubscribeButtons.tsx @@ -9,10 +9,12 @@ interface Props { }; export const SubscribeButtons = (props: Props) => - <> - - - ; + props.viewUrl + ? <> + + + + : null; interface MirrorButtonsProps { name: string;