show proper display name for source

This commit is contained in:
Aria Moradi
2021-09-18 00:03:42 +04:30
parent f17c612d10
commit a7a4443209
2 changed files with 3 additions and 3 deletions

View File

@@ -121,8 +121,8 @@ interface IProps{
}
function getSourceName(source: ISource) {
if (source.name !== null) {
return `${source.name} (${source.lang.toLocaleUpperCase()})`;
if (source.displayName !== null) {
return source.displayName;
}
return source.id;
}