From 8238c4df58729416d69c947f7f53f16259cbc36e Mon Sep 17 00:00:00 2001 From: Carter Date: Wed, 17 Dec 2025 21:31:41 -0600 Subject: [PATCH] adding ? before accessing length to prevent white screen error --- src/pages/Bins.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) }