fix: Handle family data correctly during registration and onboarding
- 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:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user