Commit Graph

3 Commits

Author SHA1 Message Date
Daniel Arantes Loverde
fc71228ad5 [cart-checkout] Prefer live appState.address.display over async selectedCustomerAddress for the name
Same class of bug as the earlier matching-cascade fix: selectedCustomerAddress
is resolved asynchronously against the address book and can lag behind or
mismatch. appState.address.display is set synchronously the moment the user
picks an address (AddressesView.selectAddress) — it's the authoritative live
value. customerAddressName had these backwards, checking the async value
first.
2026-07-10 11:43:15 -03:00
Daniel Arantes Loverde
a5878b8326 [cart-checkout] Fix address name hardcoded to 'Casa' in Checkout
CheckoutView.swift's addressSection showed the literal string "Casa"
as the address name/label regardless of which address was actually
selected — only the street/detail line below it (customerAddressLabel)
was wired to real state. Added customerAddressName, preferring
selectedCustomerAddress?.label then appState.address.display, matching
the same fallback pattern already used for the detail line.
2026-07-10 11:37:02 -03:00
Daniel Arantes Loverde
e51c99973f Commit 2026-07-07 15:11:31 -03:00