undefined -> unknown
This commit is contained in:
parent
3486c35f5e
commit
1b2f1b38b4
@ -34,7 +34,11 @@
|
|||||||
@if (inscriptions?.length && type === 'vin') {
|
@if (inscriptions?.length && type === 'vin') {
|
||||||
<div *ngFor="let contentType of inscriptionsData | keyvalue">
|
<div *ngFor="let contentType of inscriptionsData | keyvalue">
|
||||||
<div>
|
<div>
|
||||||
<span class="badge badge-ord mr-1">{{ contentType.value.count > 1 ? contentType.value.count + " " : "" }}{{ contentType.value?.tag || contentType.key }}</span>
|
@if (contentType.key !== 'undefined') {
|
||||||
|
<span class="badge badge-ord mr-1">{{ contentType.value.count > 1 ? contentType.value.count + " " : "" }}{{ contentType.value?.tag || contentType.key }}</span>
|
||||||
|
} @else {
|
||||||
|
<span class="badge badge-ord mr-1" i18n="unknown">Unknown</span>
|
||||||
|
}
|
||||||
<span class="badge badge-ord" *ngIf="contentType.value.totalSize > 0">{{ contentType.value.totalSize | bytes:2:'B':undefined:true }}</span>
|
<span class="badge badge-ord" *ngIf="contentType.value.totalSize > 0">{{ contentType.value.totalSize | bytes:2:'B':undefined:true }}</span>
|
||||||
<a *ngIf="contentType.value.delegate" [routerLink]="['/tx' | relativeUrl, contentType.value.delegate]">
|
<a *ngIf="contentType.value.delegate" [routerLink]="['/tx' | relativeUrl, contentType.value.delegate]">
|
||||||
<span i18n="ord.source-inscription">Source inscription</span>
|
<span i18n="ord.source-inscription">Source inscription</span>
|
||||||
|
@ -41,7 +41,7 @@ export class OrdDataComponent implements OnChanges {
|
|||||||
if (this.runeInfo[edict.id.toString()]) {
|
if (this.runeInfo[edict.id.toString()]) {
|
||||||
this.transferredRunes.push({ key: edict.id.toString(), ...this.runeInfo[edict.id.toString()] });
|
this.transferredRunes.push({ key: edict.id.toString(), ...this.runeInfo[edict.id.toString()] });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
if (changes.inscriptions && this.inscriptions) {
|
if (changes.inscriptions && this.inscriptions) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user