fix(paywall): show friendly plan-load error, not raw SDK message (A-OBS)
The paywall ErrorState rendered uiState.error verbatim, surfacing developer-facing billing/RC SDK
text ('There was a credentials issue. Check the underlying error for more details.') to users.
Now always shows friendly copy. Verified live: free user -> paywall -> 'We couldn't load
subscription options right now. Check your connection and tap to try again.' (no raw error).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
da7fc74faa
commit
6f6f76a22f
|
|
@ -119,7 +119,10 @@ fun PaywallScreen(
|
|||
)
|
||||
uiState.error != null -> ErrorState(
|
||||
title = "Couldn't load plans",
|
||||
message = uiState.error ?: "Check your connection and tap to try again.",
|
||||
// Always show friendly copy — the raw billing/RevenueCat SDK message (e.g.
|
||||
// "There was a credentials issue. Check the underlying error…") is developer
|
||||
// detail and must never surface to users. A-OBS.
|
||||
message = "We couldn't load subscription options right now. Check your connection and tap to try again.",
|
||||
retryLabel = "Try again",
|
||||
onRetry = { viewModel.retry() },
|
||||
modifier = Modifier.fillMaxWidth()
|
||||
|
|
|
|||
Loading…
Reference in New Issue