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:
@@ -33,7 +33,7 @@ export function SwipeCard({
|
||||
}
|
||||
}
|
||||
|
||||
const photo = profile.photos[0];
|
||||
const photo = profile.photos?.[0];
|
||||
|
||||
return (
|
||||
<motion.div
|
||||
|
||||
Reference in New Issue
Block a user