Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
Fix New Lab Request Toast Message
Browse files Browse the repository at this point in the history
  • Loading branch information
gwal86 committed Oct 7, 2020
1 parent 2490ba6 commit 923cdaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/labs/requests/NewLabRequest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ const NewLabRequest = () => {
Toast(
'success',
t('states.success'),
`${t('lab.successfullyCreated')} ${newLab?.type} ${newLab?.patient}`,
`${t('labs.successfullyCreated')} ${newLab?.type} ${t('labs.lab.for')} ${
(await PatientRepository.find(newLab?.patient || '')).fullName
}`,
)
setError(undefined)
} catch (e) {
Expand Down
1 change: 1 addition & 0 deletions src/shared/locales/enUs/translations/labs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export default {
search: 'Search labs',
successfullyUpdated: 'Successfully updated',
successfullyCompleted: 'Successfully completed',
successfullyCreated: 'Successfully created',
status: {
requested: 'Requested',
completed: 'Completed',
Expand Down

0 comments on commit 923cdaf

Please # to comment.