setShowGraphs(true)} + onShowGraphs={() => + setShowGraphs(true)} />
diff --git a/src/components/NavBar/NavBar.tsx b/src/components/NavBar/NavBar.tsx index d1297e7..71c5fc8 100644 --- a/src/components/NavBar/NavBar.tsx +++ b/src/components/NavBar/NavBar.tsx @@ -139,7 +139,7 @@ export function NavBar() { onToggle={() => setExpanded(!expanded)} data-testid="header" > - + {shouldShowBrand && ( 0; + const shouldCalculateAvailablePerc = revenuePercentage <= 100 && stat && + stat.available > 0; - const goalRef = - useRef() as React.MutableRefObject; - const reservesRef = - useRef() as React.MutableRefObject; + const goalRef = useRef() as React.MutableRefObject< + HTMLInputElement + >; + const reservesRef = useRef() as React.MutableRefObject< + HTMLInputElement + >; useHotkeys("g", (e) => !e.repeat && focusRef(goalRef), { preventDefault: true, @@ -120,7 +122,6 @@ export function StatCard({ onShowGraphs }: StatCardProps) { min={0} max={100} now={revenuePercentage} - label={`${revenuePercentage}%`} visuallyHidden />