shop: wrap long checkout message lines
- Commit
8953cbb7b38026de225d064dcfdc6409c7615b43- Author
- Vayun Mathur <[email protected]>
- When
- 2026-11-01 06:06 UTC (1 month ago)
- Parents
e39e18b
Diff
shop/src/main/java/com/vayunmathur/shop/domain/NativeCheckoutCoordinator.kt
diff --git a/shop/src/main/java/com/vayunmathur/shop/domain/NativeCheckoutCoordinator.kt b/shop/src/main/java/com/vayunmathur/shop/domain/NativeCheckoutCoordinator.ktindex f43958bb98..46b6a65952 100644--- a/shop/src/main/java/com/vayunmathur/shop/domain/NativeCheckoutCoordinator.kt+++ b/shop/src/main/java/com/vayunmathur/shop/domain/NativeCheckoutCoordinator.kt@@ -100,8 +100,12 @@ internal class NativeCheckoutCoordinator( val checkout = (if (previous == null) gateway.create(shop, lines.toList(), sentInputs, intent) else gateway.update(shop, previous.checkoutId, lines.toList(), sentInputs, intent)).getOrElse { val unsupported = (it as? ShopBackendException)?.error as? UcpError.Unsupported- publish(key, state.copy(phase = if (unsupported != null) CheckoutPhase.BrowserRequired else CheckoutPhase.Uncertain,- message = unsupported?.reason ?: "The request may have reached the merchant. Do not retry; check the session or use its website."))+ publish(key, state.copy(+ phase = if (unsupported != null) CheckoutPhase.BrowserRequired else CheckoutPhase.Uncertain,+ message = unsupported?.reason+ ?: ("The request may have reached the merchant. " ++ "Do not retry; check the session or use its website."),+ )) return } if (previous != null && checkout.checkoutId != previous.checkoutId) {