diff --git a/web/src/pages/components/Navbar.tsx b/web/src/pages/components/Navbar.tsx index db9002984..02946ee8a 100644 --- a/web/src/pages/components/Navbar.tsx +++ b/web/src/pages/components/Navbar.tsx @@ -43,7 +43,7 @@ const Navbar: React.FC = ({ user, page }) => {
Bandwidth usage: { } - {user?.plan === 'premium' ? Unlimited : You can download up to {prettyBytes(Math.max(0, 1_500_000_000 - Number(usage?.usage.usage)))} until {moment(usage?.usage.expire).local().format('lll')}}> + {(user?.user?.plan || user?.plan) === 'premium' ? Unlimited : You can download up to {prettyBytes(Math.max(0, 1_500_000_000 - Number(usage?.usage.usage)))} until {moment(usage?.usage.expire).local().format('lll')}}> }