Remove unused code

This commit is contained in:
Joshen Lim committed 2022-11-15 19:10:05 +08:00
1 parent 7106df1f0b
commit decebe7e7a
1 file changed
-22
-22
View File
@@ -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 (
<article className="max-w-4xl p-4">
<section>