Skip to content

Commit d7c15ac

Browse files
committed
skip paid animation in selection mode
1 parent 832dcdb commit d7c15ac

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/components/MoneyReportHeaderActions/MoneyReportHeaderSelectionDropdown.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ type MoneyReportHeaderSelectionDropdownProps = {
6666

6767
function MoneyReportHeaderSelectionDropdown({reportID, primaryAction, isReportInSearch, wrapperStyle}: MoneyReportHeaderSelectionDropdownProps) {
6868
const route = useRoute();
69-
const {startAnimation, startApprovedAnimation, startSubmittingAnimation} = usePaymentAnimationsContext();
69+
const {startApprovedAnimation, startSubmittingAnimation} = usePaymentAnimationsContext();
7070
const {openHoldMenu: openHoldMenuAsync, openRejectModal} = useMoneyReportHeaderModals();
7171
const openHoldMenu = (params: Parameters<typeof openHoldMenuAsync>[0]) => {
7272
openHoldMenuAsync(params);
@@ -268,9 +268,6 @@ function MoneyReportHeaderSelectionDropdown({reportID, primaryAction, isReportIn
268268
amountOwed,
269269
ownerBillingGracePeriodEnd,
270270
methodID: type === CONST.IOU.PAYMENT_TYPE.VBBA ? methodID : undefined,
271-
onPaid: () => {
272-
startAnimation();
273-
},
274271
});
275272
if (currentSearchQueryJSON && !isOffline) {
276273
search({

0 commit comments

Comments
 (0)