From efaf09f9f778e5dad64fb366e6f2ae787519c83c Mon Sep 17 00:00:00 2001 From: "Kalle (Sendou)" <38327916+Sendouc@users.noreply.github.com> Date: Thu, 17 Dec 2020 19:47:55 +0200 Subject: [PATCH] profile modal fix warning --- components/u/ProfileModal.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/u/ProfileModal.tsx b/components/u/ProfileModal.tsx index 886001a64..95f3c8949 100644 --- a/components/u/ProfileModal.tsx +++ b/components/u/ProfileModal.tsx @@ -85,7 +85,10 @@ const ProfileModal: React.FC = ({ onClose, user }) => { sensMotion: sensToString(user.profile.sensMotion), sensStick: sensToString(user.profile.sensStick), } - : undefined, + : { + sensStick: "", + sensMotion: "", + }, }); const watchBio = watch("bio", user.profile?.bio);