diff --git a/backend/src/router/user/getOffered.ts b/backend/src/router/user/getOffered.ts index cc35c9a..5f61142 100644 --- a/backend/src/router/user/getOffered.ts +++ b/backend/src/router/user/getOffered.ts @@ -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);