Skip to content

Commit

Permalink
change empty leagues check to array with empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
kepsteen committed Oct 30, 2024
1 parent 0ac4e38 commit 4803767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const parseUserPick = (
export const getUserLeagues = async (
leagues: IUser['leagues'],
): Promise<ILeague[]> => {
if (!leagues || leagues.length === 0) {
if (!leagues || leagues[0] === '') {
return [];
}
const userLeagues = leagues.map((league) => {
Expand Down

0 comments on commit 4803767

Please sign in to comment.