Skip to content

Commit

Permalink
when we select ACB pathway then ACB partner should selected
Browse files Browse the repository at this point in the history
  • Loading branch information
saloni-080601 committed Nov 8, 2023
1 parent 03ccec5 commit f0f78d8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Class/ClassForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -792,11 +792,12 @@ function ClassForm({
});

useEffect(() => {

if (pathwayData?.code === "ACB") {
const amazonCodingBootcamp = partnerData.find(
(partner) => partner.label?.toLowerCase() === "amazon coding bootcamp"
);
if (amazonCodingBootcamp) {
if (amazonCodingBootcamp ) {
setSelectedPartners([amazonCodingBootcamp]);
setClassFields({
...classFields,
Expand Down

0 comments on commit f0f78d8

Please sign in to comment.