DanNeon wrote a reply+100 XP
1mo ago
DanNeon wrote a reply+100 XP
1mo ago
DanNeon started a new conversation+100 XP
1mo ago
I've changed the [name] user variable and table column to [first_name], so that I can also add [surname] for better user comms.
Most things have updated okay, but I can't work out why this change in the profile.tsx Input block defaultValue={auth.user.first_name} is giving this warning 'The expected type comes from property 'defaultValue' which is declared here on type 'IntrinsicAttributes & ClassAttributes<HTMLInputElement> & InputHTMLAttributes<HTMLInputElement>''
I'm assuming I need to change from name to first_name somewhere upstream, but I can't work out where.
Where is auth.user coming from?