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

Feature/cart empty state #22

Merged
merged 5 commits into from
Dec 13, 2017
Merged

Conversation

AntonoffEvgeniy
Copy link
Contributor

Added cart empty state view

success ? self?.removeFromData(with: cartProduct) : ()
self?.data.value.count ?? 0 > 0 ? self?.state.onNext(.content) : self?.state.onNext(.empty)
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it's more readable to have

if let count = self?.data.value.count, count > 0

@AntonoffEvgeniy AntonoffEvgeniy merged commit 58a95bd into develop Dec 13, 2017
@AntonoffEvgeniy AntonoffEvgeniy deleted the feature/cart_empty_state branch December 13, 2017 11:12
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.

2 participants