ui: show trial instead of sub

This commit is contained in:
Andras Bacsai committed 2023-09-12 17:24:46 +02:00
1 parent cd0da04ea2
commit c418a17161
2 files changed
+10 -6

No files matched your search

@@ -8,6 +8,10 @@ use Stripe\Checkout\Session;
class PricingPlans extends Component
{
public bool $isTrial = false;
public function mount() {
$this->isTrial = !data_get(currentTeam(),'subscription.stripe_trial_already_ended');
}
public function subscribeStripe($type)
{
$team = currentTeam();