Skip to content

Commit

Permalink
fix(exports): add safe navigation operator on answer param (#553)
Browse files Browse the repository at this point in the history
  • Loading branch information
moustachu authored Jun 10, 2024
1 parent 4cd181a commit 21c5608
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ def hash_for(answer)

def user_data(answer)
{
answer_translated_attribute_name(:email) => answer.user&.email.presence || "",
answer_translated_attribute_name(:name) => answer.user&.name || ""
answer_translated_attribute_name(:email) => answer&.user&.email.presence || "",
answer_translated_attribute_name(:name) => answer&.user&.name || ""
}
end

Expand Down

0 comments on commit 21c5608

Please sign in to comment.