Skip to content

Commit

Permalink
Update collectibles hook to return null instead of empty objects (#11410
Browse files Browse the repository at this point in the history
)
  • Loading branch information
schottra authored Feb 19, 2025
1 parent 7680b50 commit 44b88d3
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/common/src/api/tan-query/useUserCollectibles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@ export const useUserCollectibles = (
const { data } = await sdk.users.getUserCollectibles({
id: Id.parse(userId)
})
return (data?.data ?? {
order: [],
collectibles: []
}) as CollectiblesMetadata
return (data?.data as CollectiblesMetadata) ?? null
},
...options,
enabled: options?.enabled !== false && !!args.userId
Expand Down

0 comments on commit 44b88d3

Please sign in to comment.