Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
Fix signing (#4363)
Browse files Browse the repository at this point in the history
  • Loading branch information
gavofyork authored and jacogr committed Feb 3, 2017
1 parent 98a93f7 commit 7579e91
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion js/src/redux/providers/signerMiddleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export default class SignerMiddleware {
}

onConfirmStart = (store, action) => {
const { gas, gasPrice, id, password, payload, wallet } = action.payload;
const { gas = 0, gasPrice = 0, id, password, payload, wallet } = action.payload;

const handlePromise = (promise) => {
promise
Expand Down
3 changes: 2 additions & 1 deletion js/src/views/Signer/components/SignRequest/signRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,9 @@ export default class SignRequest extends Component {
);
}

onConfirm = password => {
onConfirm = (data) => {
const { id } = this.props;
const { password } = data;

this.props.onConfirm({ id, password });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,8 @@ function mapStateToProps (_, initProps) {

return (state) => {
const { accounts } = state.personal;
const account = accounts[address] || {};
let gotAddress = Object.keys(accounts).find(a => a.toLowerCase() === address.toLowerCase());
const account = gotAddress ? accounts[gotAddress] : {};

return { account };
};
Expand Down

0 comments on commit 7579e91

Please sign in to comment.