Skip to content

Commit

Permalink
Typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffersonBledsoe committed Dec 15, 2023
1 parent 5524684 commit ac749fb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ def _attribute(attribute_name):
_attribute("widget")
_attribute("use_as_reply_to")
_attribute("use_as_reply_bcc")
self._dislpay_value_mapping = field_data.get("dislpay_value_mapping")
self._display_value_mapping = field_data.get("display_value_mapping")
self._value = field_data.get("value")
self._custom_field_id = field_data.get("custom_field_id")
self._label = field_data.get("label")

@property
def value(self):
if self._dislpay_value_mapping:
return self._dislpay_value_mapping.get(self._value, self._value)
if self._display_value_mapping:
return self._display_value_mapping.get(self._value, self._value)
return self._value

@value.setter
Expand All @@ -47,11 +47,11 @@ def send_in_email(self):
class YesNoField(Field):
@property
def value(self):
if self._dislpay_value_mapping:
if self._display_value_mapping:
if self._value is True:
return self._dislpay_value_mapping.get("yes")
return self._display_value_mapping.get("yes")
elif self._value is False:
return self._dislpay_value_mapping.get("no")
return self._display_value_mapping.get("no")
return self._value

@property
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def reply(self):
{
**field,
**submitted_field,
"dislpay_value_mapping": field.get(
"display_value_mapping": field.get(
"display_values"
),
}
Expand Down

0 comments on commit ac749fb

Please sign in to comment.