Skip to content

Commit

Permalink
💄 Forms: Display Yes/No when value is a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
tgeorgel committed Oct 21, 2024
1 parent 5c565bb commit dc179bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Datas/FormEntryValue.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ public function displayValue(): string
{
return match (true) {
is_array($this->value) => implode(', ', $this->value),
$this->type === FormFieldType::Confirm => $this->value ? __('Yes') : __('No'),
default => (string) $this->value,
};
}
Expand Down

0 comments on commit dc179bb

Please sign in to comment.