Skip to content

Commit

Permalink
inactive validators list fix. (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
SrikanthSoparla authored Mar 9, 2024
1 parent 582e23d commit 5a130a0
Show file tree
Hide file tree
Showing 4 changed files with 943 additions and 941 deletions.
2 changes: 2 additions & 0 deletions config-overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ module.exports = function override (config, env) {
crypto: require.resolve('crypto-browserify'),
process: require.resolve('process/browser'),
buffer: require.resolve('buffer'),
levenary: false,
vm: false,
};
config.resolve.extensions = [...config.resolve.extensions, '.ts', '.js'];
config.plugins = [
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
"eject": "react-app-rewired eject"
},
"devDependencies": {
"@babel/core": "7.23.2",
"@babel/eslint-parser": "7.22.15",
"@babel/plugin-proposal-private-property-in-object": "7.21.11",
"@babel/preset-env": "7.23.2",
"axios": "^0.21.1",
"env-cmd": "^10.1.0",
"eslint": "^6.8.0",
Expand Down
2 changes: 1 addition & 1 deletion src/actions/stake.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ export const getInActiveValidators = (cb) => (dispatch) => {
Connection: 'keep-alive',
},
});
const updatedResult = [...result.data && result.data.result, ...unBondingResult.data && unBondingResult.data.result];
const updatedResult = [...result.data && result.data.validators, ...unBondingResult.data && unBondingResult.data.validators];
dispatch(fetchInActiveValidatorsSuccess(updatedResult));
cb(updatedResult);
} catch (error) {
Expand Down
Loading

0 comments on commit 5a130a0

Please sign in to comment.