Skip to content

Commit

Permalink
Hide negative news if the result is empty (#41)
Browse files Browse the repository at this point in the history
Signed-off-by: Sean Sundberg <[email protected]>
  • Loading branch information
seansund authored Sep 20, 2023
1 parent f232526 commit 993144c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/NegativeNews/NegativeNews.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ export interface NegativeNewsProps {

export const NegativeNews: React.FunctionComponent<NegativeNewsProps> = (props: NegativeNewsProps) => {

if (props.news && !props.news.result) {
return (<></>)
}

const getContent = (): string => {
if (!props.news) {
return 'Pending'
Expand Down

0 comments on commit 993144c

Please sign in to comment.