1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 08:13:42 +00:00

subscription null check

This commit is contained in:
Kyle Spearrin
2018-07-18 12:13:24 -04:00
parent 16e6a88ccf
commit 197d1c673c

View File

@@ -73,7 +73,7 @@
</div> </div>
</ng-container> </ng-container>
<ng-container *ngIf="!selfHosted"> <ng-container *ngIf="!selfHosted">
<ng-container *ngIf="!subscription.cancelled || subscriptionMarkedForCancel"> <ng-container *ngIf="subscription && !subscription.cancelled || subscriptionMarkedForCancel">
<div class="d-flex"> <div class="d-flex">
<button type="button" class="btn btn-outline-secondary" (click)="downloadLicense()" *ngIf="!subscription.cancelled"> <button type="button" class="btn btn-outline-secondary" (click)="downloadLicense()" *ngIf="!subscription.cancelled">
{{'downloadLicense' | i18n}} {{'downloadLicense' | i18n}}