From 1c8ce7b4cb99b1db3d28c7cf17098ae48d3f2d40 Mon Sep 17 00:00:00 2001 From: Kishan Date: Thu, 23 Sep 2021 23:15:27 +0100 Subject: [PATCH] Fixed an issue where alerts without a link still showed link --- frontend/src/components/AlterBanner.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/AlterBanner.tsx b/frontend/src/components/AlterBanner.tsx index 25d337d7..6ff574a6 100644 --- a/frontend/src/components/AlterBanner.tsx +++ b/frontend/src/components/AlterBanner.tsx @@ -86,9 +86,9 @@ const AlertBanner: React.FC = (props) => {

{showExpandButtonMobile ? "New Alert(s)" : props.alert.message} 
- { !expanded && event.preventDefault(); reportAlertButtonClick(); }}> + {(!expanded || props.alert.linkTo) ? { !expanded && event.preventDefault(); reportAlertButtonClick(); }}> {expanded ? props.alert.linkText || "View" : "Expand"} - + : null }