Skip to content

Commit c60fbaa

Browse files
committed
Update useCallback
1 parent b1cba72 commit c60fbaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/instrument-utils/src/storedInstrument/ManageInstrumentsModal/ManageInstrumentsModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { type PaymentInstrument } from '@bigcommerce/checkout-sdk';
22
import { noop } from 'lodash';
3-
import React, { type ReactElement, useCallback, useState } from 'react';
3+
import React, { type ReactElement, useState } from 'react';
44

55
import { TranslatedString } from '@bigcommerce/checkout/locale';
66
import { useCheckout } from '@bigcommerce/checkout/payment-integration-api';
@@ -78,10 +78,10 @@ const ManageInstrumentsModal = ({
7878
}
7979
};
8080

81-
const handleDeleteInstrument = useCallback((id: string): void => {
81+
const handleDeleteInstrument = (id: string): void => {
8282
setIsConfirmingDelete(true);
8383
setSelectedInstrumentId(id);
84-
}, []);
84+
};
8585

8686
const ModalContent = () => {
8787
if (isConfirmingDelete) {

0 commit comments

Comments
 (0)