Skip to content

Commit

Permalink
Fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
reagan-meant committed Nov 19, 2024
1 parent ac2cd5b commit d77d885
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ const SendSmsForm: React.FC<SendSmsFormProps> = ({
const languageNames = useMemo(
() =>
Object.fromEntries(
allowedLocales.map((locale) => [locale, new Intl.DisplayNames([locale], { type: 'language' }).of(locale)]),
(allowedLocales ?? []).map((locale) => [
locale,
new Intl.DisplayNames([locale], { type: 'language' }).of(locale),
]),
),
[allowedLocales],
);
Expand Down
1 change: 1 addition & 0 deletions packages/esm-patient-outcomes-app/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"partOfFormDidntLoad": "Part of the form did not load",
"proQuestionnaireUrlSent": "PRO Questionnaire url (SMS) sent to Patient successfully!",
"refreshToTryAgain": "Please refresh to try again",
"selectLanguage": "Select Language",
"sendingSms": "Sending SMS",
"sendSMS": "Send PRO SMS",
"sendSmsError": "Error sending PRO Questionnaire url (SMS)!!",
Expand Down

0 comments on commit d77d885

Please sign in to comment.