8000 [🐛] NT-1193 Pledge button disabled bug by eoji · Pull Request #848 · kickstarter/android-oss · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[🐛] NT-1193 Pledge button disabled bug #848

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

Merged
merged 1 commit into from
Apr 23, 2020
Merged

[🐛] NT-1193 Pledge button disabled bug #848

merged 1 commit into from
Apr 23, 2020

Conversation

eoji
Copy link
Contributor
@eoji eoji commented Apr 23, 2020

📲 What

Fixes bug where pledge button was still disabled after user added their first payment method.

🤔 Why

So people can pledge after adding their first stored card!

🛠 How

  • Instead of depending on initialCardSelection which won't emit if a user has no stored cards, using selectedCardAndPosition to determine if pledgeButtonIsEnabled should emit
  • Added distinctUntilChanged to fix broken tests

👀 See

device-2020-04-23-144353 2020-04-23 14_48_58

📋 QA

Steps to repro:

  • Have 0 saved payment methods
  • Navigate to the pledge screen
  • The pledge button should be disabled
  • Added a payment method
  • The pledge button should be enabled

Story 📖

NT-1193

…n. Added distinctUntilChanged to fix broken tests.
@eoji eoji added the bug 🐛 label Apr 23, 2020
@eoji eoji requested review from jgsamudio and a team April 23, 2020 18:50
@eoji eoji merged commit 6fe5c16 into master Apr 23, 2020
@eoji eoji deleted the NT-1193 branch April 23, 2020 20:40
eoji added a commit that referenced this pull request Apr 23, 2020
- Instead of depending on `initialCardSelection` which won't emit if a user has no stored cards, using `selectedCardAndPosition` to determine if `pledgeButtonIsEnabled` should emit
- Added `distinctUntilChanged` to fix broken tests

(cherry picked from commit 6fe5c16)
eoji added a commit that referenced this pull request May 7, 2020
* Bumping version names in prep for 2.6.0 RC

* Updating version codes post 2.6.0 RC creation.

* [🐛] NT-1193 Pledge button disabled bug(#848)

- Instead of depending on `initialCardSelection` which won't emit if a user has no stored cards, using `selectedCardAndPosition` to determine if `pledgeButtonIsEnabled` should emit
- Added `distinctUntilChanged` to fix broken tests

(cherry picked from commit 6fe5c16)

* Bumping version codes post new 2.6.0 RC creation with NT-1193 bug fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0