Skip to content

Commit ccf52d9

Browse files
Merge pull request #56455 from allgandalf/playsuccessSound
play success sound on report approval
2 parents 44fce77 + 421491e commit ccf52d9

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/libs/actions/IOU.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8513,6 +8513,7 @@ function approveMoneyRequest(expenseReport: OnyxEntry<OnyxTypes.Report>, full?:
85138513
optimisticHoldReportExpenseActionIDs,
85148514
};
85158515

8516+
playSound(SOUNDS.SUCCESS);
85168517
API.write(WRITE_COMMANDS.APPROVE_MONEY_REQUEST, parameters, {optimisticData, successData, failureData});
85178518
}
85188519

src/libs/actions/Search.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ function approveMoneyRequestOnSearch(hash: number, reportIDList: string[], trans
326326
const failureData: OnyxUpdate[] = createOnyxData({errors: getMicroSecondOnyxErrorWithTranslationKey('common.genericErrorMessage')});
327327
const finallyData: OnyxUpdate[] = createOnyxData({isActionLoading: false});
328328

329+
playSound(SOUNDS.SUCCESS);
329330
API.write(WRITE_COMMANDS.APPROVE_MONEY_REQUEST_ON_SEARCH, {hash, reportIDList}, {optimisticData, failureData, finallyData});
330331
}
331332

0 commit comments

Comments
 (0)