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

Remove account from market state, use SagaShared getAccount to fetch … #758

Merged
merged 1 commit into from
Dec 5, 2016

Conversation

svk31
Copy link
Contributor

@svk31 svk31 commented Dec 2, 2016

…accounts #437

In my previous commit for #437 I added the global reducer to MarketSaga but @roadscape mentioned this was not really desirable so I decided to refactor it again. I noticed the market state was keeping a duplicate of the account object that could just as easily be pulled from state.global.accounts so Market.jsx now uses that account object instead.

Also, SagaShared has a getAccount method but AuthSaga and MarketSaga was duplicating that method so I replaced them with the shared method.

Copy link
Contributor

@roadscape roadscape left a comment

Choose a reason for hiding this comment

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

Looks good & tested working.

@roadscape roadscape merged commit 44468c4 into develop Dec 5, 2016
@roadscape roadscape deleted the MarketSaga-getAccount-refactor branch December 5, 2016 22:02
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.

None yet

2 participants