Skip to content

Commit

Permalink
fix: backend user fetch offers
Browse files Browse the repository at this point in the history
  • Loading branch information
Zafei-Erin committed Mar 1, 2024
1 parent a4cc62a commit b132d9d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions backend/src/router/user/getOffered.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ export const getOffered = async (
nft: true,
},
});

if (offers === null) {
res.status(200).json([]);
}
res.status(200).json(offers);
} catch (error) {
next(error);
Expand Down

0 comments on commit b132d9d

Please sign in to comment.