show proper display name for source
This commit is contained in:
@@ -121,8 +121,8 @@ interface IProps{
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getSourceName(source: ISource) {
|
function getSourceName(source: ISource) {
|
||||||
if (source.name !== null) {
|
if (source.displayName !== null) {
|
||||||
return `${source.name} (${source.lang.toLocaleUpperCase()})`;
|
return source.displayName;
|
||||||
}
|
}
|
||||||
return source.id;
|
return source.id;
|
||||||
}
|
}
|
||||||
|
|||||||
2
src/typings.d.ts
vendored
2
src/typings.d.ts
vendored
@@ -25,9 +25,9 @@ interface ISource {
|
|||||||
lang: string
|
lang: string
|
||||||
iconUrl: string
|
iconUrl: string
|
||||||
supportsLatest: boolean
|
supportsLatest: boolean
|
||||||
history: any
|
|
||||||
isConfigurable: boolean
|
isConfigurable: boolean
|
||||||
isNsfw: boolean
|
isNsfw: boolean
|
||||||
|
displayName: string
|
||||||
}
|
}
|
||||||
|
|
||||||
interface IMangaCard {
|
interface IMangaCard {
|
||||||
|
|||||||
Reference in New Issue
Block a user