From decebe7e7ae28039482d4d3676829e129eb4c9b5 Mon Sep 17 00:00:00 2001 From: Joshen Lim Date: Tue, 15 Nov 2022 19:10:05 +0800 Subject: [PATCH] Remove unused code --- studio/pages/account/me.tsx | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/studio/pages/account/me.tsx b/studio/pages/account/me.tsx index 8b8675b40b8..965cc47184c 100644 --- a/studio/pages/account/me.tsx +++ b/studio/pages/account/me.tsx @@ -71,28 +71,6 @@ const ProfileCard = observer(() => { })() }, []) - // const updatePassword = async (model: { password: string }) => { - // try { - // const { password } = await passwordSchema.validate(model) - - // console.log('password:', password) - - // ui.setNotification({ category: 'success', message: 'Successfully updated password' }) - // } catch (error) { - // if (error instanceof ValidationError) { - // return ui.setNotification({ - // category: 'error', - // message: error.message, - // }) - // } - - // ui.setNotification({ - // category: 'error', - // message: 'Something went wrong. Please try again later', - // }) - // } - // } - return (