Skip to content

Commit cd1e317

Browse files
committed
fix: only allow db check if tiers are set
1 parent 3b6e2c8 commit cd1e317

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Auth/UsesSubscriptions.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ trait UsesSubscriptions
2626
*/
2727
public function subscription(): ?array
2828
{
29+
if (billing()->tiers() === []) {
30+
return null;
31+
}
32+
2933
if (
3034
!$this->subscription && (
3135
$this->subscription = db()

0 commit comments

Comments
 (0)