Skip to content

Commit

Permalink
Fix "Complete Upload" crash (#11392)
Browse files Browse the repository at this point in the history
  • Loading branch information
faridsalau authored Feb 16, 2025
1 parent 7d310ef commit e68da94
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/common/src/api/tan-query/useUserCollectibles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@ export const useUserCollectibles = (
const { data } = await sdk.users.getUserCollectibles({
id: Id.parse(userId)
})
return data?.data as CollectiblesMetadata
return (data?.data ?? {
order: [],
collectibles: []
}) as CollectiblesMetadata
},
...options,
enabled: options?.enabled !== false && !!args.userId
Expand Down

0 comments on commit e68da94

Please # to comment.