Skip to content

Commit

Permalink
Fix: add organization_id in missing palces for consultations
Browse files Browse the repository at this point in the history
  • Loading branch information
georgipavlov-7DIGIT committed Sep 27, 2024
1 parent 43379bf commit 8f7742c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/ActivityHistory/ActivityHistory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,8 @@ export const ActivityHistory = ({
renderIn="provider"
onClick={() => handleConsultationClick(consultation)}
couponPrice={consultation.couponPrice}
organizationName={consultation.organizationName}
sponsorImage={consultation.sponsorImage}
withOrganization={!!consultation.organizationId}
t={t}
/>
</GridItem>
Expand Down
1 change: 1 addition & 0 deletions src/blocks/Consultations/Consultations.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ export const Consultations = ({
suggested={consultation.status === "suggested"}
couponPrice={consultation.couponPrice}
sponsorImage={consultation.sponsorImage}
withOrganization={!!consultation.organizationId}
t={t}
/>
</GridItem>
Expand Down
1 change: 1 addition & 0 deletions src/hooks/useGetAllPastConsultations.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export default function useGetAllPastConsultations() {
couponPrice: consultation.coupon_price,
sponsorImage: consultation.sponsor_image,
organizationName: consultation.organization_name,
organizationId: consultation.organization_id,
}));
};

Expand Down
1 change: 1 addition & 0 deletions src/hooks/useGetAllUpcomingConsultations.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default function useGetAllUpcomingConsultations() {
campaignId: consultation.campaign_id,
couponPrice: consultation.coupon_price,
sponsorImage: consultation.sponsor_image,
organizationId: consultation.organization_id,
}));
};

Expand Down

0 comments on commit 8f7742c

Please sign in to comment.