Skip to content

Commit

Permalink
made sucess and error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Sarthak5598 committed Mar 2, 2024
1 parent 3dcf025 commit 6e2b2c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions website/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -3866,7 +3866,7 @@ def update_bch_address(request):
user_profile = request.user.userprofile
user_profile.crypto_address = new_address
user_profile.save()
return redirect(reverse('profile', args=[request.user.username]))
messages.success(request, 'BCH Address updated successfully.')
except Exception as e:
return redirect(reverse('profile', args=[request.user.username]))
messages.error(request, 'Failed to update BCH Address.')
return redirect(reverse('profile', args=[request.user.username]))

0 comments on commit 6e2b2c6

Please sign in to comment.