From 4803767c74a263f3c6c3d381ecf1e973275227ff Mon Sep 17 00:00:00 2001 From: Cody Epstein Date: Wed, 30 Oct 2024 10:27:19 -0700 Subject: [PATCH] change empty leagues check to array with empty string --- utils/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils.ts b/utils/utils.ts index ca28a1da..9ff84691 100644 --- a/utils/utils.ts +++ b/utils/utils.ts @@ -127,7 +127,7 @@ export const parseUserPick = ( export const getUserLeagues = async ( leagues: IUser['leagues'], ): Promise => { - if (!leagues || leagues.length === 0) { + if (!leagues || leagues[0] === '') { return []; } const userLeagues = leagues.map((league) => {