-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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-1211: Pass down pledge total to thank you page for new page copy #1965
MBL-1211: Pass down pledge total to thank you page for new page copy #1965
Conversation
) | ||
self.backedProjectText = self.configureWithDataProperty.signal | ||
.skipNil() | ||
.map { project, _, _, _ in |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fourth arg here will be the pledge total once I update the strings.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the plan to then gate the string from within this output?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@scottkicks Correct; this is just plumbing to get all the data where it needs to go.
Whoops, converting to draft while I fix tests. |
@@ -905,7 +905,7 @@ public class PledgeViewModel: PledgeViewModelType, PledgeViewModelInputs, Pledge | |||
isApplePay: isApplePay | |||
) | |||
|
|||
return (data.project, baseReward, checkoutPropsData) | |||
return (data.project, baseReward, checkoutPropsData, data.pledgeTotal) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One line to change it, another 40 lines to fix the tests about it 😆
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oops disregard this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My bad. Misunderstood the intention at first
5e62280
to
fa0fbce
Compare
📲 What
Pass the pledge total into the thank you page.
🤔 Why
The new string for post-campaign backings on the thank-you page will reference the pledge amount, so we need it in the view model.