Fix broken course url

pull/8140/head
Kamran Ahmed 1 month ago
parent d87ea1c972
commit 91cfa88b3d
  1. 2
      src/components/SQLCourse/AccountButton.tsx
  2. 2
      src/components/SQLCourse/BuyButton.tsx

@ -58,7 +58,7 @@ export function AccountButton() {
return (
<a
href={`${import.meta.env.PUBLIC_COURSE_APP_URL}/sql`}
href={`${import.meta.env.PUBLIC_COURSE_APP_URL}/master-sql`}
className={`${buttonClasses} animate-fade-in`}
>
Start Learning

@ -101,7 +101,7 @@ export function BuyButton(props: BuyButtonProps) {
const hasEnrolled = !!courseProgress?.enrolledAt;
if (hasEnrolled) {
window.location.href = `${import.meta.env.PUBLIC_COURSE_APP_URL}/sql`;
window.location.href = `${import.meta.env.PUBLIC_COURSE_APP_URL}/master-sql`;
return;
}

Loading…
Cancel
Save