mirror of
https://github.com/marcusDenslow/terminalShop.git
synced 2026-10-25 02:52:20 +02:00
fix: fixed payment not going through if no address and card were saved
This commit is contained in:
@@ -384,6 +384,8 @@ func (m Model) ShippingUpdate(msg tea.Msg) (Model, tea.Cmd) {
|
||||
m.ErrorMsg = "Invalid address. Currently only US and Norwegian addresses are supported."
|
||||
return m, m.shipping.form.form.Init()
|
||||
}
|
||||
saved := msg.Address
|
||||
m.ShippingInfo = &saved
|
||||
return m.PaymentSwitch()
|
||||
|
||||
case ShippingFormErrorMsg:
|
||||
|
||||
Reference in New Issue
Block a user