Skip to content

Commit

Permalink
fix(consignment): allow omitting insurance field (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
joerivanveen authored Apr 11, 2022
1 parent 210ef61 commit 810ac4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Adapter/ConsignmentAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ private function setExtraOptions(): self
'age_check' => (bool) ($options['age_check'] ?? false),
'signature' => (bool) ($options['signature'] ?? false),
'return' => (bool) ($options['return'] ?? false),
'insurance' => $options['insurance']['amount'],
'insurance' => $options['insurance']['amount'] ?? 0,
'label_description' => $options['label_description'] ?? null,
]);

Expand Down

0 comments on commit 810ac4e

Please sign in to comment.