Skip to content

Commit

Permalink
Fix gift sku ids check
Browse files Browse the repository at this point in the history
  • Loading branch information
thalytafabrine committed Mar 18, 2024
1 parent 07b1f90 commit 918d301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/resolvers/search/offer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const resolvers = {
},
giftSkuIds: propOr([], 'GiftSkuIds'),
gifts: async ({ GiftSkuIds }: CommertialOffer, _: any, ctx: Context) => {
if (GiftSkuIds?.length === 0) {
if (!GiftSkuIds || GiftSkuIds.length === 0) {
return []
}

Expand Down

0 comments on commit 918d301

Please sign in to comment.