Skip to content

Commit 134de71

Browse files
committed
Fix availability label in resource
1 parent e0a4ef5 commit 134de71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/BookJsonResource.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function toArray($request): array
2121
'formatted_published_date' => $this->published_date
2222
? $this->published_date->isoFormat('Do MMMM YYYY')
2323
: null,
24-
'availability_label' => $this->availability_label,
24+
'availability_label' => $this->availability?->getLabel(),
2525
'short_details' => $this->short_details,
2626
'orderable' => $this->canBeOrdered(),
2727
'url' => $this->url,

0 commit comments

Comments
 (0)