Fix onboarding bottom button not staying pinned, and swipe card crash

- OnboardingScreen used min-h-dvh instead of h-dvh, so the scrollable content
  area never actually clipped/scrolled internally; the page just grew and the
  primary CTA button scrolled away with it instead of staying visible. Switch
  to h-dvh and give each step's button a sticky footer (StepFooterButton).
- SwipeCard crashed with "Cannot read properties of null" when a candidate
  had no photos, because the backend could return null instead of an empty
  array; guard with optional chaining.
This commit is contained in:
2026-09-19 22:17:29 +03:30
parent dca8c5e9e3
commit 4bd7b93b4a
9 changed files with 47 additions and 22 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ export function SwipeCard({
}
}
const photo = profile.photos[0];
const photo = profile.photos?.[0];
return (
<motion.div