diff --git a/src/pages/Bins.tsx b/src/pages/Bins.tsx index bad16c9..085d382 100644 --- a/src/pages/Bins.tsx +++ b/src/pages/Bins.tsx @@ -261,7 +261,7 @@ export default function Bins(props: Props) { if (doneLoadingPage && grainBins.length < 1 && grainBags.length < 1) { teamAPI.listTeams(1, 0).then(resp => { // console.log(resp.data.teams) - if (resp.data.teams.length > 0) { + if (resp.data?.teams?.length > 0) { // console.log("should?") setTeamsDialog(true) }