fix: Handle family data correctly during registration and onboarding
Some checks failed
CI/CD Pipeline / Lint and Test (push) Has been cancelled
CI/CD Pipeline / E2E Tests (push) Has been cancelled
CI/CD Pipeline / Build Application (push) Has been cancelled

- Extract family data from registration response and add to user object
- Backend returns family separately in registration, but included in user for login
- Remove error messages for language/measurement preferences (they save correctly)
- Add detailed console logging for debugging family issues
- Improve error message when family is missing during child creation

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-10-03 15:39:04 +00:00
parent 952efa6d37
commit 0dc2fcf284
4 changed files with 94 additions and 58 deletions

View File

@@ -74,39 +74,36 @@ export default function TrackPage() {
onClick={() => router.push(option.path)}
sx={{
height: '100%',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
width: '100%',
}}
>
<CardContent sx={{
textAlign: 'center',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
width: '100%',
height: '100%',
p: 2,
'&:last-child': { pb: 2 }
}}>
<Box
sx={{
textAlign: 'center',
display: 'flex',
flexDirection: 'column',
alignItems: 'center',
justifyContent: 'center',
height: '180px',
minHeight: '180px',
width: '100%',
p: 2,
}}
>
{option.icon}
<Typography
variant="h6"
fontWeight="600"
sx={{
mt: 2,
wordWrap: 'break-word',
wordBreak: 'break-word',
hyphens: 'auto',
textAlign: 'center',
width: '100%',
lineHeight: 1.2,
}}
>
{option.title}
</Typography>
</CardContent>
</Box>
</CardActionArea>
</Card>
</Grid>