1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-06-13 05:29:24 -04:00

Display modal on failed security deletion

This commit is contained in:
2017-02-05 20:48:40 -05:00
parent cec769b6b8
commit 5478ba3fd0
2 changed files with 43 additions and 7 deletions

View File

@ -6,10 +6,10 @@ var SecuritiesTab = require('../components/SecuritiesTab');
function mapStateToProps(state) {
var selectedSecurityAccounts = [];
for (var accountId in state.accounts) {
if (state.accounts.hasOwnProperty(accountId)
&& state.accounts[accountId].SecurityId == state.selectedSecurity)
selectedSecurityAccounts.push(state.accounts[accountId]);
for (var accountId in state.accounts.map) {
if (state.accounts.map.hasOwnProperty(accountId)
&& state.accounts.map[accountId].SecurityId == state.selectedSecurity)
selectedSecurityAccounts.push(state.accounts.map[accountId]);
}
return {
securities: state.securities,