Skip to content

Commit

Permalink
fix withdrawal display
Browse files Browse the repository at this point in the history
  • Loading branch information
wolverineks committed May 20, 2022
1 parent 2940cb0 commit 1016d5e
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -121,7 +121,7 @@ export class WithdrawStakingRewards extends React.Component<Props, State> {
)
const fees = await signTxRequest.fee()
const finalBalance = balance
.joinAddMutable(
.joinAddCopy(
deregistrations.reduce(
(sum, curr) => (curr.refund == null ? sum : sum.joinAddCopy(curr.refund)),
new MultiToken([], {
Expand All @@ -130,7 +130,7 @@ export class WithdrawStakingRewards extends React.Component<Props, State> {
}),
),
)
.joinSubtractMutable(fees)
.joinSubtractCopy(fees)
this.setState({
signTxRequest,
withdrawals,
Expand Down

0 comments on commit 1016d5e

Please sign in to comment.