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

Also update global account state on MarketSaga get_accounts, fixes #437 #741

Merged
merged 2 commits into from
Dec 2, 2016

Conversation

svk31
Copy link
Contributor

@svk31 svk31 commented Dec 1, 2016

I made the state.market.account object immutable as well which is why Market.jsx needed an update.

if(account) {
account = fromJS(account)
yield put(MarketReducer.actions.receiveAccount({ account }))
yield put(g.actions.receiveAccount({ account }))
Copy link
Contributor

Choose a reason for hiding this comment

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

Is yield put(g.actions.receiveAccount({ account })) required for the witness page fix? Is there possibly a more relevant place to put this line, just in case fetchOpenOrders is no longer called on every page load in the future?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hm you're right actually. The issue is that fetchOpenOrders is the only place that calls get_accounts with your account when you log in. If we can put that in loginWatch in UserSaga for example that would be better, or we can add a special case in fetchState.

@roadscape roadscape merged commit be003ed into develop Dec 2, 2016
@roadscape roadscape deleted the 437-witness-votes branch December 2, 2016 21:56
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