Skip to content

Commit b560773

Browse files
authored
Merge pull request #1086 from IFRCGo/fix/per-language-mismatch-popup
Wait for content original language to check for language mismatch
2 parents 2538f3d + df8feef commit b560773

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/CHANGELOG.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
### Patch Changes
66

7-
- 2631a9f: Add office type and location information for IFRC delegation office
87
- 1b4b6df: Add local unit form
9-
- 2d7a6a5: - Enable ability to start PER in IFRC supported lanugages
10-
- Make PER forms readOnly in case of language mismatch
8+
- 2631a9f: Add office type and location information for IFRC delegation office
9+
- 2d7a6a5: - Enable ability to start PER in IFRC supported languages
10+
- Make PER forms `readOnly` in case of language mismatch
1111
- e4bf098: Fix incorrect statistics for past appeals of a country
1212
- Updated dependencies [0ab207d]
1313
- Updated dependencies [66151a7]

app/src/views/PerProcessForm/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export function Component() {
6363
const contentOriginalLanguage = statusResponse
6464
?.translation_module_original_language;
6565
const languageMismatch = isDefined(perId)
66-
&& currentLanguage !== contentOriginalLanguage;
67-
66+
&& isDefined(contentOriginalLanguage)
67+
&& (currentLanguage !== contentOriginalLanguage);
6868
const shouldHideForm = isDefined(statusResponseError);
6969

7070
const actionDivRef = useRef<HTMLDivElement>(null);

0 commit comments

Comments
 (0)