Skip to content

Commit

Permalink
Fix issue where function to look up value translations for printing d…
Browse files Browse the repository at this point in the history
…oesn't fall back to untranslated value
  • Loading branch information
stephenhand committed Dec 16, 2022
1 parent a246cce commit 9d015fe
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 9d015fe

Please sign in to comment.