Skip to content

Commit

Permalink
fix: remove unnecessarily explicit check
Browse files Browse the repository at this point in the history
Co-authored-by: Piero Nicolli <pnicolli@users.noreply.github.com>
  • Loading branch information
mbarde and pnicolli committed Dec 12, 2023
1 parent 51b6dfa commit 329b806
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FormView.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const FormView = ({
data.subblocks.forEach((subblock) => {
if (
['email', 'from'].includes(subblock.field_type) &&
subblock.user_email_as_default === true
subblock.user_email_as_default
) {
const name = getFieldName(subblock.label, subblock.id);
if (!formData.hasOwnProperty(name))
Expand Down

0 comments on commit 329b806

Please sign in to comment.