Skip to content

Commit 8745116

Browse files
committed
Revert "skip paid animation in selection mode"
This reverts commit d7c15ac.
1 parent d7c15ac commit 8745116

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/components/MoneyReportHeaderActions/MoneyReportHeaderSelectionDropdown.tsx

Lines changed: 4 additions & 1 deletion
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 {startApprovedAnimation, startSubmittingAnimation} = usePaymentAnimationsContext();
69+
const {startAnimation, startApprovedAnimation, startSubmittingAnimation} = usePaymentAnimationsContext();
7070
const {openHoldMenu: openHoldMenuAsync, openRejectModal} = useMoneyReportHeaderModals();
7171
const openHoldMenu = (params: Parameters<typeof openHoldMenuAsync>[0]) => {
7272
openHoldMenuAsync(params);
@@ -268,6 +268,9 @@ function MoneyReportHeaderSelectionDropdown({reportID, primaryAction, isReportIn
268268
amountOwed,
269269
ownerBillingGracePeriodEnd,
270270
methodID: type === CONST.IOU.PAYMENT_TYPE.VBBA ? methodID : undefined,
271+
onPaid: () => {
272+
startAnimation();
273+
},
271274
});
272275
if (currentSearchQueryJSON && !isOffline) {
273276
search({

0 commit comments

Comments
 (0)