Skip to content

Commit

Permalink
Merge pull request #1126 from techmatters/CHI-1609-blank_pdf_sections
Browse files Browse the repository at this point in the history
CHI-1609: Fix issue where function to look up value translations for printing doesn't fall back to untranslated value
  • Loading branch information
stephenhand authored Dec 16, 2022
2 parents a246cce + 9d015fe commit 615594b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import { presentValue } from '../../../utils';

export const presentValueFromStrings = (strings: Record<string, string>) =>
presentValue(
code => strings[code],
code => strings[code] ?? code,
codes => codes.join('\n'),
);

0 comments on commit 615594b

Please sign in to comment.