From d3017676343bc6f3176394eb22cc781a09951f0c Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Mon, 15 May 2023 21:19:12 +1000 Subject: [PATCH] exercise 1.9 --- part1/src/App.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/part1/src/App.js b/part1/src/App.js index 880e12a..629ac91 100644 --- a/part1/src/App.js +++ b/part1/src/App.js @@ -1,9 +1,15 @@ import { useState } from 'react' -// Lol it's already factored that way :3 const Stats = ({ positive, neutral, negative }) => { const total = positive - negative const votes = positive + neutral + negative + if (votes == 0) { + return ( + <> +

No Votes Cast Yet

+ + ) + } return ( <>

Results