Skip to content

Commit

Permalink
better handling of history check for multichain
Browse files Browse the repository at this point in the history
  • Loading branch information
aaroncox committed Jan 14, 2019
1 parent 63be23c commit 5c9c692
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion app/shared/actions/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,17 @@ export function historyPluginCheck() {
const {
connection,
} = getState();
const historyAccount = connection.chain === 'BEOS' ? 'beos.gateway' : 'teamgreymass';
let historyAccount;
switch (connection.chainId) {
case '50f1cee2e3750f473e673049c1b828ec10e10eb96c7211a91cc2bd29ae94c6dd': {
historyAccount = 'beos.gateway';
break;
}
default: {
historyAccount = 'teamgreymass';
break;
}
}
return eos(connection).getActions(historyAccount).then((result) => dispatch({
type: types.SET_CONNECTION_HISTORY_PLUGIN_ENABLED,
payload: { enabled: (result.actions && result.actions.length !== 0) }
Expand Down

0 comments on commit 5c9c692

Please sign in to comment.