Skip to content

Commit b0fbe52

Browse files
committed
fix: ignore plugins with no prices
1 parent babb1f0 commit b0fbe52

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/Actions/FetchPluginDataFromAnystack.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ public function __invoke(): void
5353

5454
$prices = collect($advertisedProducts['prices'] ?? []);
5555

56+
if ($prices->isEmpty()) {
57+
return;
58+
}
59+
5660
$priceAmount = $prices->min('amount');
5761
$priceCurrency = $prices->keyBy('amount')[$priceAmount]['currency'];
5862

0 commit comments

Comments
 (0)