We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c370e2b commit 4eb150fCopy full SHA for 4eb150f
src/translation/index.js
@@ -60,7 +60,7 @@ export function translate(id, language) {
60
const i = parseInt(s.substring(2, s.length - 2), 10),
61
sub = params[i];
62
63
- return sub !== null && sub !== undefined && sub.toString ? sub.toString() : '';
+ return sub?.toString ? sub.toString() : '';
64
});
65
}
66
0 commit comments