The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.
TypeScript clickhousemysqlnextjsopen-sourceplanetscaleprismatailwindcsstinybirdtypescriptupstashvercel
Update steps.tsx
Tim Wilson6924a3a61b50
diff --git a/apps/web/app/app.dub.co/(new-program)/steps.tsx b/apps/web/app/app.dub.co/(new-program)/steps.tsxindex 6dd709b671..d93e67670b 100644--- a/apps/web/app/app.dub.co/(new-program)/steps.tsx+++ b/apps/web/app/app.dub.co/(new-program)/steps.tsx@@ -25,6 +25,10 @@ export function Steps() {const currentPath = pathname.replace(`/${slug}`, "");+ const currentStep = PROGRAM_ONBOARDING_STEPS.find(+ (s) => s.href === currentPath,+ );+const lastCompletedStep =programOnboarding?.lastCompletedStep ?? "get-started";@@ -71,7 +75,8 @@ export function Steps() {const completed =step === lastCompletedStep ||- (lastCompletedStepObj?.stepNumber ?? 0) >= stepNumber;+ (lastCompletedStepObj?.stepNumber ?? 0) >= stepNumber ||+ (currentStep?.stepNumber ?? 0) >= stepNumber;const isDisabled = !completed && !current;