Skip to content

Commit

Permalink
Merge pull request #206 from bounswe/kaan-post-page
Browse files Browse the repository at this point in the history
bug fix
  • Loading branch information
kaanguneyli authored May 11, 2024
2 parents 454f920 + 1c8823c commit 48cafb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/nba_app/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,8 @@ def profile_view_edit(request):

# Update profile picture if provided
if new_profile_picture:
os.remove(user.profile_picture.path)
if user.profile_picture != 'default_nba_app_pp.jpg':
os.remove(user.profile_picture.path)
user.profile_picture = new_profile_picture

# Update bio if provided
Expand Down

0 comments on commit 48cafb2

Please sign in to comment.