profile modal fix warning

This commit is contained in:
Kalle (Sendou) 2020-12-17 19:47:55 +02:00
parent 6b476b8f1e
commit efaf09f9f7

View File

@ -85,7 +85,10 @@ const ProfileModal: React.FC<Props> = ({ onClose, user }) => {
sensMotion: sensToString(user.profile.sensMotion),
sensStick: sensToString(user.profile.sensStick),
}
: undefined,
: {
sensStick: "",
sensMotion: "",
},
});
const watchBio = watch("bio", user.profile?.bio);