fix: Fix type

This commit is contained in:
Myzel394 2023-04-10 14:01:20 +02:00
parent 21fb825416
commit 510dca0dd2
No known key found for this signature in database
GPG Key ID: 79CC92F37B3E1A2B

View File

@ -40,10 +40,7 @@ export default function SelectField({
const labelId = `${name}-label`
const preferenceName = `alias${name.charAt(0).toUpperCase() + name.slice(1)}`
const value = user.preferences[preferenceName as keyof User["preferences"]]
console.log(user.preferences)
console.log(preferenceName)
console.log(value)
const defaultValueText = valueTextMap[value.toString()]
const defaultValueText = valueTextMap[value!.toString()]
return (
<FormControl fullWidth>