Skip to content

Commit 6e0095f

Browse files
committed
fix: fix can not update and claim staking after last update
1 parent cbbc95c commit 6e0095f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/components/Modal/StakingClaimModal.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ class StakingClaimModal extends React.Component {
124124
(item) => item !== null && item.get("name") === trustNodeName
125125
);
126126
this.setState({
127-
trustNodeId: trustNode[0].get("id")
127+
trustNodeId: trustNode.get(0).get("id")
128128
});
129129
} else {
130130
this.setState({

app/components/Modal/StakingCreateModal.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ class StakingCreateModal extends React.Component {
153153
AccountActions.createStaking(
154154
currentProgramID,
155155
this.state.ownerId,
156-
ChainStore.getWitnessById(this.state.trustNodeId).get("id"),
156+
ChainStore.getWitnessById(this.state.trustNode.get("id")).get("id"),
157157
amount * precision,
158158
currentProgram.weight,
159159
currentProgram.staking_days

app/components/Modal/StakingUpdateModal.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class StakingUpdateModal extends React.Component {
122122
if (trustNodeName) {
123123
let trustNode = this.state.trustNodes.filter(item => item !== null && item.get("name") === trustNodeName);
124124
this.setState({
125-
trustNodeId: trustNode[0].get("id")
125+
trustNodeId: trustNode.get(0).get("id")
126126
});
127127
} else {
128128
this.setState({

0 commit comments

Comments
 (0)