diff --git a/src/features/need/need.controller.ts b/src/features/need/need.controller.ts index 15c2aa7a4..c7a9b3c82 100644 --- a/src/features/need/need.controller.ts +++ b/src/features/need/need.controller.ts @@ -286,7 +286,7 @@ export class NeedController { flaskNeed.id, ); - if (!statuses) { + if (!statuses || !statuses[0]) { // we do not have a history of purchaser id before implementing our new features if (new Date(flaskNeed.doneAt).getFullYear() < 2023) { purchaserId = 31; // Nyaz