Skip to content

Commit 333401e

Browse files
authored
Merge pull request Expensify#75509 from nkdengineer/fix/73610
Something went wrong briefly shown after paying offline
2 parents 754d35d + 5e7f7fc commit 333401e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/MoneyReportHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ function MoneyReportHeader({
474474
} else {
475475
startAnimation();
476476
payMoneyRequest(type, chatReport, moneyRequestReport, introSelected, undefined, true, activePolicy);
477-
if (currentSearchQueryJSON) {
477+
if (currentSearchQueryJSON && !isOffline) {
478478
search({
479479
searchKey: currentSearchKey,
480480
shouldCalculateTotals,
@@ -780,7 +780,7 @@ function MoneyReportHeader({
780780
}
781781
startSubmittingAnimation();
782782
submitReport(moneyRequestReport, policy, accountID, email ?? '', hasViolations, isASAPSubmitBetaEnabled);
783-
if (currentSearchQueryJSON) {
783+
if (currentSearchQueryJSON && !isOffline) {
784784
search({
785785
searchKey: currentSearchKey,
786786
shouldCalculateTotals,

0 commit comments

Comments
 (0)