Skip to content
New issue

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

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

Already on GitHub? # to your account

[MBL-1687] Fix continue button on confirm details page not working #2147 #2148

Merged
merged 4 commits into from
Sep 5, 2024

Conversation

ifosli
Copy link
Contributor

@ifosli ifosli commented Sep 5, 2024

📲 What

We accidentally introduced a bug where the late pledge flow can't be completed because the location id isn't correctly transformed to a string. This fixes that bug and the "no shipping" test that I thought might be related that ended up not being related after all.

👀 See

Jira

With flag off With flag on
Simulator Screen Recording - iPhone 15 Plus - 2024-09-05 at 12 59 12 Simulator Screen Recording - iPhone 15 Plus - 2024-09-05 at 13 01 18

✅ Acceptance criteria

  • Checkout id is created successfully and user can navigate from confirm details to checkout screen. Tested with and without flag on and with and without shipping

@ifosli ifosli self-assigned this Sep 5, 2024
@ifosli ifosli marked this pull request as ready for review September 5, 2024 19:24
@ifosli ifosli requested a review from scottkicks September 5, 2024 19:24
@@ -362,10 +362,14 @@ public class ConfirmDetailsViewModel: ConfirmDetailsViewModelType, ConfirmDetail
return [String](repeating: reward.graphID, count: count)
}

let locationId = selectedShippingRule == nil
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggestion: You could do selectedShippingRule.flatMap { String($0.location.id) } to make this one line and remove the ! below (and do the same for NoShippingConfirmDetailsViewModel

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I like that! Thanks!

@ifosli ifosli merged commit 0b0c46b into main Sep 5, 2024
5 checks passed
@ifosli ifosli deleted the confirmDetailsContinue branch September 5, 2024 22:44
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants