Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MBL-1268: Check for 'canceled' param in login redirect #1972

Merged
merged 1 commit into from Mar 11, 2024

Conversation

amy-at-kickstarter
Copy link
Contributor

@amy-at-kickstarter amy-at-kickstarter commented Mar 7, 2024

📲 What

Check if redirect was canceled.

🤔 Why

Otherwise, if the user cancels somewhere inside the webview, we would show an error message, which looks a little silly.
https://github.com/kickstarter/ios-oss/assets/146007185/2a073c11-be58-4217-9385-f29c608d19b6

@amy-at-kickstarter amy-at-kickstarter force-pushed the feat/adyer/MBL-1268/cancel-button branch from 5c27dff to 68e79e6 Compare March 7, 2024 21:03
@@ -432,7 +432,7 @@ public final class LoginToutViewController: UIViewController, MFMailComposeViewC
)
alert.addAction(UIAlertAction(title: Strings.login_errors_button_ok(), style: .cancel))
self?.present(alert, animated: true)
case .cancelled:
case .canceled:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Renamed for sanity since the web param is also canceled with one l

@amy-at-kickstarter amy-at-kickstarter requested review from a team, scottkicks and ifosli and removed request for a team March 11, 2024 15:35
@amy-at-kickstarter amy-at-kickstarter self-assigned this Mar 11, 2024
@amy-at-kickstarter amy-at-kickstarter marked this pull request as ready for review March 11, 2024 15:36
@amy-at-kickstarter amy-at-kickstarter merged commit ba9c05e into main Mar 11, 2024
5 checks passed
@amy-at-kickstarter amy-at-kickstarter deleted the feat/adyer/MBL-1268/cancel-button branch March 11, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants