Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jpuri committed Feb 9, 2023
1 parent 9058f24 commit 40b94b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions ui/pages/confirm-send-ether/confirm-send-ether.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,8 @@ export default class ConfirmSendEther extends Component {

render() {
const hideData = this.shouldHideData();
const { txParams } = this.props;
const { txParams: { to: tokenAddress } = {}, type } = txParams;

const { txParams = {}, type } = this.props;
const { to: tokenAddress } = txParams;
return (
<ConfirmTransactionBase
actionKey="confirm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ describe('Confirm Transaction', () => {
txData: sendWithApproveTransaction,
},
});
const { container, getByText, getByRole, getAllByText } =
const { getByText, getByTitle, getByRole, getAllByText } =
renderWithProvider(
<ConfirmTransaction
actionKey="confirm"
Expand All @@ -50,10 +50,9 @@ describe('Confirm Transaction', () => {
store,
`${CONFIRM_TRANSACTION_ROUTE}/${sendWithApproveTransaction.id}${CONFIRM_SEND_ETHER_PATH}`,
);

expect(getAllByText('Approve')).toHaveLength(1);
expect(getByText('0x2f3...C970')).toBeInTheDocument();
expect(getByText('Max fee:')).toBeInTheDocument();
expect(getByText('0x85c...D65e')).toBeInTheDocument();
expect(getByTitle('0.0001 ETH')).toBeInTheDocument();

act(() => {
const dataTabButton = getByRole('button', { name: 'Data' });
Expand Down

0 comments on commit 40b94b0

Please sign in to comment.