Skip to content

Commit

Permalink
fix: tup-675 incorrect syntax to check for email prop
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleyboar committed Dec 21, 2023
1 parent 87aa8f9 commit df6bbb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/tup-cms/src/apps/portal/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def callback(form, cleaned_data, **kwargs):
logger.debug(f"received submission from {form.name}")
if form.name == 'rt-ticket-form':
submit_ticket(cleaned_data)
elif cleaned_data["email"]:
elif hasattr(cleaned_data, "email"):
send_confirmation_email(form.name, cleaned_data)


Expand Down

0 comments on commit df6bbb8

Please sign in to comment.