diff --git a/src/pages/course-planner/index.tsx b/src/pages/course-planner/index.tsx index b46f3a33..ccdf74ee 100644 --- a/src/pages/course-planner/index.tsx +++ b/src/pages/course-planner/index.tsx @@ -207,18 +207,29 @@ const Foundation = () => { {t("MASTER.STATE")} - - {role === "Central Admin CCTA" ? ( - stateNames.map((stateName) => ( - - + + {role === "Central Admin CCTA" + ? stateNames.map((stateName) => ( + { {/* Add any icon or text for the copy link button */} - - - )) - ) : ( - - handleCardClick(store?.matchingstate?.name)} - > - + )) + : store?.matchingstate && ( + handleCardClick(stateName)} + onClick={() => + handleCardClick(store.matchingstate.name) + } > - - {store?.matchingstate?.name} - - - - - - - )} + + {store.matchingstate.name} + + + + + + )} + )} @@ -310,4 +316,4 @@ export async function getStaticProps({ locale }: { locale: string }) { ...(await serverSideTranslations(locale, ["common"])), }, }; -} \ No newline at end of file +}