Skip to content

Commit

Permalink
bugfix/erc20 allowance ui (#2103)
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmino authored Jan 21, 2021
1 parent 008a163 commit d8564fd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/components/UI/ApproveTransactionReview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -550,11 +550,10 @@ class ApproveTransactionReview extends PureComponent {
};

renderTransactionReview = () => {
const { host, method, viewData, tokenSymbol } = this.state;
const { host, method, viewData, tokenSymbol, originalApproveAmount } = this.state;
const {
transaction: { to, data }
} = this.props;
const amount = decodeTransferData('transfer', data)[1];

return (
<TransactionReviewDetailsCard
Expand All @@ -563,7 +562,7 @@ class ApproveTransactionReview extends PureComponent {
copyContractAddress={this.copyContractAddress}
address={renderShortAddress(to)}
host={host}
allowance={amount}
allowance={originalApproveAmount}
tokenSymbol={tokenSymbol}
data={data}
method={method}
Expand Down

0 comments on commit d8564fd

Please sign in to comment.