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) => {