fix(events): let guests default to the card rail in the purchase dialog #146

Merged
padreug merged 1 commit from fix/events-guest-default-rail into dev 2026-09-08 13:24:41 +00:00

View file

@ -161,7 +161,9 @@ watch(
const { providers, providerMeta } = useFiatProviders() const { providers, providerMeta } = useFiatProviders()
const { convert } = usePriceConversion() const { convert } = usePriceConversion()
const selectedMethodId = ref<string>('lightning') // Empty until the dialog opens: the watcher below picks the default per
// rail availability + auth state, so a guest lands on Card, not Lightning.
const selectedMethodId = ref<string>('')
const isFiatPending = ref(false) const isFiatPending = ref(false)
const fiatError = ref<string | null>(null) const fiatError = ref<string | null>(null)
@ -336,7 +338,7 @@ async function handlePurchase(contact: { name?: string; email: string }) {
function handleClose() { function handleClose() {
emit('update:isOpen', false) emit('update:isOpen', false)
resetPaymentState() resetPaymentState()
selectedMethodId.value = 'lightning' selectedMethodId.value = ''
fiatError.value = null fiatError.value = null
isFiatPending.value = false isFiatPending.value = false
quantity.value = 1 quantity.value = 1