Skip to content

Commit

Permalink
Fix single token retirement display.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariy Miseldzhani committed Dec 20, 2024
1 parent 7902a8e commit d366570
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ <h3>Policy Overview</h3>
<i class="pi pi-bars retirement-group-icon"></i>


<ng-container *ngIf="getRetirementGroupVC(group).credentialSubject[0]?.tokens?.length > 0; else singleTokenRetirementTemplate">
<ng-container *ngIf="getRetirementGroupVC(group).credentialSubject[0]?.tokens?.length > 1; else singleTokenRetirementTemplate">
<div style="display: inline-block; position: relative; align-self: end;">
<div class="chain-item item-type-RETIRE multiple-tokens retire-multiple-card-2"></div>
<div class="chain-item item-type-RETIRE multiple-tokens retire-multiple-card-1"></div>
Expand All @@ -421,8 +421,8 @@ <h3>Policy Overview</h3>
<p>User ID <span>{{ getRetirementGroupVC(group).credentialSubject[0]?.user }}</span></p>
</div>
<div class="retire-info second-token">
<p *ngIf="getRetirementGroupVC(group).credentialSubject[0]?.tokens[0].serials && getRetirementGroupVC(group).credentialSubject[0]?.tokens[1].serials.length > 0">Instance ID <span>{{ getRetirementGroupVC(group).credentialSubject[0]?.tokens[1].serials.join(', ') }}</span></p>
<p *ngIf="getRetirementGroupVC(group).credentialSubject[0]?.tokens[0].serials && getRetirementGroupVC(group).credentialSubject[0]?.tokens[1].serials.length <= 0">Amount <span>{{ getRetirementGroupVC(group).credentialSubject[0]?.tokens[1].count }}</span></p>
<p *ngIf="getRetirementGroupVC(group).credentialSubject[0]?.tokens[1].serials && getRetirementGroupVC(group).credentialSubject[0]?.tokens[1].serials.length > 0">Instance ID <span>{{ getRetirementGroupVC(group).credentialSubject[0]?.tokens[1].serials.join(', ') }}</span></p>
<p *ngIf="getRetirementGroupVC(group).credentialSubject[0]?.tokens[1].serials && getRetirementGroupVC(group).credentialSubject[0]?.tokens[1].serials.length <= 0">Amount <span>{{ getRetirementGroupVC(group).credentialSubject[0]?.tokens[1].count }}</span></p>
<p>Token <span>{{ getRetirementGroupVC(group).credentialSubject[0]?.tokens[1].tokenId }}</span></p>
</div>
</div>
Expand Down

0 comments on commit d366570

Please sign in to comment.