diff --git a/resources/views/components/input/media-manager.blade.php b/resources/views/components/input/media-manager.blade.php index 9c978ea..2abf2cb 100644 --- a/resources/views/components/input/media-manager.blade.php +++ b/resources/views/components/input/media-manager.blade.php @@ -7,34 +7,13 @@ 'id' ]) -
+
@if (empty($file)) -
+
@endif
+ + + diff --git a/src/Livewire/WithStripe.php b/src/Livewire/WithStripe.php index db22aa1..1933ca7 100644 --- a/src/Livewire/WithStripe.php +++ b/src/Livewire/WithStripe.php @@ -30,7 +30,7 @@ public function updateStripePaymentMethod(string $event, string $message) $billable->updateDefaultPaymentMethod($this->stripeToken); // Let Livewire knows Stripe payment method updated. - $this->emitSelf('stripePaymentMethodUpdated', $billable); + $this->dispatch('stripePaymentMethodUpdated', $billable)->self(); // Let Alpinejs now Stripe payment method updated. $this->dispatch('stripe-payment-method-updated');