Unverified Commit 5323ae76 authored by Iain Maitland's avatar Iain Maitland
Browse files

stricter type checking for loginBroadcastOperation

parent 6a98a98a
/* eslint react/prop-types: 0 */
import React, { PropTypes, Component } from 'react';
import { Map } from 'immutable';
import * as transactionActions from 'app/redux/TransactionReducer';
import * as globalActions from 'app/redux/GlobalReducer';
import * as userActions from 'app/redux/UserReducer';
......@@ -269,7 +270,8 @@ class LoginForm extends Component {
: null;
const isTransfer =
loginBroadcastOperation &&
Map.isMap(loginBroadcastOperation) &&
loginBroadcastOperation.has('type') &&
loginBroadcastOperation
.get('type')
.toLowerCase()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment