Skip to content

Commit

Permalink
Fix availability label in resource
Browse files Browse the repository at this point in the history
  • Loading branch information
dvlpp committed Dec 11, 2024
1 parent e0a4ef5 commit 134de71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BookJsonResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function toArray($request): array
'formatted_published_date' => $this->published_date
? $this->published_date->isoFormat('Do MMMM YYYY')
: null,
'availability_label' => $this->availability_label,
'availability_label' => $this->availability?->getLabel(),
'short_details' => $this->short_details,
'orderable' => $this->canBeOrdered(),
'url' => $this->url,
Expand Down

0 comments on commit 134de71

Please sign in to comment.