Skip to content

Commit

Permalink
Fix navbar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysztofwolski committed Sep 27, 2021
1 parent ae8d721 commit 9f8348d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Navbar: React.VFC = ({}) => {
skip: !checkoutToken,
});

const counter = data ? data.checkout!.lines?.length : 0;
const counter = data?.checkout?.lines?.length || 0;

return (
<div className="bg-white shadow-sm">
Expand Down

0 comments on commit 9f8348d

Please sign in to comment.