Skip to content

Commit

Permalink
Merge pull request #710 from dmytroshch/fix/auth-page
Browse files Browse the repository at this point in the history
(fix) Authentication: check connection to both sockets (local and api server)
  • Loading branch information
bhoomij authored Jun 14, 2024
2 parents 610e624 + 91e8338 commit 495eae7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Authentication/Authentication.container.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import { isSocketConnected, getAuthConfigured } from '../../redux/selectors/ws'
import Authentication from './Authentication'
import { PAPER_MODE } from '../../redux/reducers/ui'
import { removeStoredPassword, updateAutoLoginState } from '../../util/autologin'
import WS from '../../redux/constants/ws'

const mapStateToProps = (state = {}) => {
const { isPaperTrading } = state.ui

return {
wsConnected: isSocketConnected(state),
wsConnected: isSocketConnected(state, WS.ALIAS_API_SERVER) && isSocketConnected(state, WS.ALIAS_DATA_SERVER),
configured: getAuthConfigured(state),
isPaperTrading,
}
Expand Down

0 comments on commit 495eae7

Please sign in to comment.