Skip to content

Commit

Permalink
Prop bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman035 committed Nov 26, 2021
1 parent 4fe5c89 commit 7717821
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/issuer/eachReq.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const mapStateToProps = state => ({
})

const mapDispatchToProps = (dispatch) => ({
decrypt : (hash , account) => dispatch(decrypt(hash , account)),
acceptIssuerAccount : (rqNo , account , id) => dispatch(acceptRequest(rqNo , account , id)),
rejectIssuerAccount : (rqNo , account) => dispatch(rejectRequest(rqNo , account)),
});
Expand Down Expand Up @@ -37,7 +38,7 @@ const EachReq = (props)=> {
<div className="row p-2">
<div className="col-12">
<Button className="reqBtn" variant="contained" color="info"
onClick={async()=>{const decypted = await decrypt(props.req.hash ,props.User.info.address); setId(decypted);}}>
onClick={async()=>{const decypted = await props.decrypt(props.req.hash ,props.User.info.address); setId(decypted);}}>
Decrypt ID
</Button>
</div>
Expand Down

0 comments on commit 7717821

Please sign in to comment.