Skip to content

Commit

Permalink
Fixed money export
Browse files Browse the repository at this point in the history
  • Loading branch information
janhenckens committed Dec 28, 2023
1 parent faf79cb commit 1a0df9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/fields/MoneyFieldParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ class MoneyFieldParser extends BaseFieldParser
public function getValue($element, $field)
{
$field = $element->getFieldValue($field['handle']);
return $field->getAmount();
if($field) {
return $field->getAmount();
}
}

public function getOptions(): array
Expand Down

0 comments on commit 1a0df9d

Please sign in to comment.