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

[NT-623] Rewards carousel title should be “View rewards” for non-live projects #978

Merged
merged 2 commits into from
Dec 3, 2019

Conversation

ifbarrera
Copy link
Contributor

📲 What

Fixes a bug where ended projects were showing "Back this project" as the title for the rewards carousel.

🤔 Why

After the project has ended, you can no longer back the project. The title of the rewards carousel should reflect that.

🛠 How

Added the logic in the titleForContext helper function in RewardsCollectionViewModel. It will apply regardless of the context.

👀 See

Trello, screenshots, external resources?

After 🦋 Before 🐛
Simulator Screen Shot - iPhone 8 - 2019-12-03 at 11 14 05 Simulator Screen Shot - iPhone 8 - 2019-12-03 at 11 13 08

♿️ Accessibility

N/A

🏎 Performance

N/A

✅ Acceptance criteria

  • Navigate to a project that has ended. Tap the "View rewards" CTA on the project page. The rewards carousel should show, and the title should be "View rewards".

Copy link
Contributor

@justinswart justinswart left a comment

Choose a reason for hiding this comment

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

Woops! Good catch 😅

@ifbarrera ifbarrera merged commit 15595d2 into master Dec 3, 2019
@ifbarrera ifbarrera deleted the NT-623-view-rewards branch December 3, 2019 22:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants