Skip to content

Commit b6f4539

Browse files
committed
fix: clean up
1 parent 0cc7bc9 commit b6f4539

File tree

2 files changed

+0
-22
lines changed

2 files changed

+0
-22
lines changed

ui/pages/confirmations/components/confirm/info/shared/transaction-details/transaction-details.test.tsx

-19
Original file line numberDiff line numberDiff line change
@@ -232,24 +232,5 @@ describe('<TransactionDetails />', () => {
232232
getByTestId('transaction-details-recipient-row'),
233233
).toBeInTheDocument();
234234
});
235-
236-
it('renders SmartContractWithLogo when transaction is a batch transaction', () => {
237-
const state = getMockConfirmStateForTransaction(
238-
upgradeAccountConfirmation as Confirmation,
239-
{
240-
metamask: {
241-
preferences: {
242-
showConfirmationAdvancedDetails: true,
243-
},
244-
},
245-
},
246-
);
247-
const mockStore = configureMockStore(middleware)(state);
248-
const { getByText } = renderWithConfirmContextProvider(
249-
<TransactionDetails />,
250-
mockStore,
251-
);
252-
expect(getByText('Smart contract')).toBeInTheDocument();
253-
});
254235
});
255236
});

ui/pages/confirmations/components/confirm/info/shared/transaction-details/transaction-details.tsx

-3
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,11 @@ export const OriginRow = () => {
6262
};
6363

6464
export const RecipientRow = ({ recipient }: { recipient?: Hex } = {}) => {
65-
console.log('RecipientRow >>>>');
66-
6765
const t = useI18nContext();
6866
const { currentConfirmation } = useConfirmContext<TransactionMeta>();
6967
const to = recipient ?? currentConfirmation?.txParams?.to;
7068
const isBatch = currentConfirmation?.type === TransactionType.batch;
7169

72-
console.log('<>>>>>>>', to, from, isBatch);
7370
if (!to || !isValidAddress(to)) {
7471
return null;
7572
}

0 commit comments

Comments
 (0)