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:
null 2026-06-25 12:10:45 -05:00
parent f1549c642c
commit d99fa6c6ea
1 changed files with 4 additions and 1 deletions

View File

@ -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()