Skip to content

Commit

Permalink
Fix UpdateUser.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Nov 30, 2024
1 parent 43128ca commit 37906fb
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions backend/src/pages/UpdateUser.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,18 +182,7 @@ const UpdateUser = () => {
}

const handleCancel = async () => {
try {
if (avatar) {
setLoading(true)

await UserService.deleteTempAvatar(avatar)
navigate('/users')
} else {
navigate('/users')
}
} catch {
navigate('/users')
}
navigate('/users')
}

const handleResendActivationLink = async () => {
Expand Down

0 comments on commit 37906fb

Please sign in to comment.