Skip to content

Commit

Permalink
fixed if condition
Browse files Browse the repository at this point in the history
  • Loading branch information
hemant10yadav committed Nov 26, 2024
1 parent a1b72d6 commit 4f770f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commcare_connect/opportunity/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1248,7 +1248,7 @@ def resend_user_invite(request, org_slug, opp_id, pk):
if user_invite.notification_date and (now() - user_invite.notification_date) < datetime.timedelta(days=1):
return HttpResponse("You can only send one invitation per user every 24 hours. Please try again later.")

if user_invite.status != UserInviteStatus.not_found:
if user_invite.status == UserInviteStatus.not_found:
found_user_list = fetch_users([user_invite.phone_number])
if not found_user_list:
return HttpResponse("The user is not registered on Connect ID yet. Please ask them to sign up first.")
Expand Down

0 comments on commit 4f770f8

Please sign in to comment.