show proper display name for source
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
2
src/typings.d.ts
vendored
2
src/typings.d.ts
vendored
@@ -25,9 +25,9 @@ interface ISource {
|
||||
lang: string
|
||||
iconUrl: string
|
||||
supportsLatest: boolean
|
||||
history: any
|
||||
isConfigurable: boolean
|
||||
isNsfw: boolean
|
||||
displayName: string
|
||||
}
|
||||
|
||||
interface IMangaCard {
|
||||
|
||||
Reference in New Issue
Block a user