Skip to content

Commit a8275b1

Browse files
authored
Merge branch 'main' into patch-20
2 parents 8519501 + 2cbe57a commit a8275b1

22 files changed

Lines changed: 65 additions & 35 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"test:debug": "TZ=utc NODE_OPTIONS='--inspect-brk --experimental-vm-modules' jest --runInBand",
4747
"perf-test": "NODE_OPTIONS=--experimental-vm-modules npx reassure",
4848
"typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc",
49-
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=330 --cache --cache-location=node_modules/.cache/eslint",
49+
"lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=328 --cache --cache-location=node_modules/.cache/eslint",
5050
"lint-changed": "NODE_OPTIONS=--max_old_space_size=8192 ./scripts/lintChanged.sh",
5151
"lint-watch": "npx eslint-watch --watch --changed",
5252
"shellcheck": "./scripts/shellCheck.sh",

src/components/MoneyRequestHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,8 @@ function MoneyRequestHeader({report, parentReportAction, policy, onBackButtonPre
202202
if (!transaction || !reportActions) {
203203
return [];
204204
}
205-
return getSecondaryTransactionThreadActions(parentReport, transaction, Object.values(reportActions), policy);
206-
}, [parentReport, policy, transaction]);
205+
return getSecondaryTransactionThreadActions(parentReport, transaction, Object.values(reportActions), policy, report);
206+
}, [report, parentReport, policy, transaction]);
207207

208208
const secondaryActionsImplementation: Record<ValueOf<typeof CONST.REPORT.TRANSACTION_SECONDARY_ACTIONS>, DropdownOption<ValueOf<typeof CONST.REPORT.TRANSACTION_SECONDARY_ACTIONS>>> = {
209209
[CONST.REPORT.TRANSACTION_SECONDARY_ACTIONS.HOLD]: {

src/components/ReportActionItem/MoneyRequestReportPreview/MoneyRequestReportPreviewContent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ function MoneyRequestReportPreviewContent({
440440
return CONST.REPORT.REPORT_PREVIEW_ACTIONS.PAY;
441441
}
442442
return getReportPreviewAction(violations, isIouReportArchived || isChatReportArchived, iouReport, policy, transactions, invoiceReceiverPolicy);
443-
}, [isPaidAnimationRunning, violations, iouReport, policy, transactions, isIouReportArchived, reportActions, invoiceReceiverPolicy, isChatReportArchived]);
443+
}, [isPaidAnimationRunning, violations, iouReport, policy, transactions, isIouReportArchived, invoiceReceiverPolicy, isChatReportArchived]);
444444

445445
const addExpenseDropdownOptions = useMemo(
446446
() => [

src/components/TestDrive/Modal/EmployeeTestDriveModal.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import {
1919
} from '@libs/actions/IOU';
2020
import {verifyTestDriveRecipient} from '@libs/actions/Onboarding';
2121
import setTestReceipt from '@libs/actions/setTestReceipt';
22+
import type AccountExistsError from '@libs/Errors/AccountExistsError';
2223
import Navigation from '@libs/Navigation/Navigation';
2324
import type {PlatformStackRouteProp} from '@libs/Navigation/PlatformStackNavigation/types';
2425
import type {TestDriveModalNavigatorParamList} from '@libs/Navigation/types';
@@ -93,13 +94,13 @@ function EmployeeTestDriveModal() {
9394
},
9495
() => {
9596
setIsLoading(false);
96-
setFormError(translate('testDrive.modal.employee.error'));
97+
setFormError(translate('common.genericErrorMessage'));
9798
},
9899
);
99100
})
100-
.catch(() => {
101+
.catch((e: AccountExistsError) => {
101102
setIsLoading(false);
102-
setFormError(translate('testDrive.modal.employee.error'));
103+
setFormError(e.translationKey ? translate(e.translationKey) : 'common.genericErrorMessage');
103104
});
104105
};
105106

src/languages/de.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ const translations = {
628628
getTheApp: 'Hole dir die App',
629629
scanReceiptsOnTheGo: 'Scannen Sie Belege von Ihrem Telefon aus',
630630
headsUp: 'Achtung!',
631+
unstableInternetConnection: 'Instabile Internetverbindung. Bitte überprüfe dein Netzwerk und versuche es erneut.',
631632
},
632633
supportalNoAccess: {
633634
title: 'Nicht so schnell',

src/languages/en.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,7 @@ const translations = {
618618
getTheApp: 'Get the app',
619619
scanReceiptsOnTheGo: 'Scan receipts from your phone',
620620
headsUp: 'Heads up!',
621+
unstableInternetConnection: 'Unstable internet connection. Please check your network and try again.',
621622
},
622623
supportalNoAccess: {
623624
title: 'Not so fast',

src/languages/es.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -609,6 +609,7 @@ const translations = {
609609
getTheApp: 'Descarga la app',
610610
scanReceiptsOnTheGo: 'Escanea recibos desde tu teléfono',
611611
headsUp: '¡Atención!',
612+
unstableInternetConnection: 'Conexión a internet inestable. Por favor, revisa tu red e inténtalo de nuevo.',
612613
},
613614
supportalNoAccess: {
614615
title: 'No tan rápido',

src/languages/fr.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ const translations = {
628628
getTheApp: "Obtenez l'application",
629629
scanReceiptsOnTheGo: 'Numérisez les reçus depuis votre téléphone',
630630
headsUp: 'Attention !',
631+
unstableInternetConnection: 'Connexion Internet instable. Veuillez vérifier votre réseau et réessayer.',
631632
},
632633
supportalNoAccess: {
633634
title: 'Pas si vite',

src/languages/it.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ const translations = {
628628
getTheApp: "Scarica l'app",
629629
scanReceiptsOnTheGo: 'Scansiona le ricevute dal tuo telefono',
630630
headsUp: 'Attenzione!',
631+
unstableInternetConnection: 'Connessione Internet instabile. Controlla la tua rete e riprova.',
631632
},
632633
supportalNoAccess: {
633634
title: 'Non così in fretta',

src/languages/ja.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,7 @@ const translations = {
628628
getTheApp: 'アプリを入手',
629629
scanReceiptsOnTheGo: '携帯電話から領収書をスキャンする',
630630
headsUp: 'ご注意ください!',
631+
unstableInternetConnection: 'インターネット接続が不安定です。ネットワークを確認してもう一度お試しください。',
631632
},
632633
supportalNoAccess: {
633634
title: 'ちょっと待ってください',

0 commit comments

Comments
 (0)