Skip to content

Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍

Support coupon codes on Google Play (#795)

Thomas Kauld1230ca3ad47
diff --git a/apps/client/src/app/pages/account/account-page.html b/apps/client/src/app/pages/account/account-page.html
index c11f020bd6..47f8a37143 100644
--- a/apps/client/src/app/pages/account/account-page.html
+++ b/apps/client/src/app/pages/account/account-page.html
@@ -27,28 +27,28 @@
Valid until {{ user?.subscription?.expiresAt | date:
defaultDateFormat }}
</div>
- <div
- *ngIf="hasPermissionForSubscription && user?.subscription?.type === 'Basic'"
- >
- <button
- color="primary"
- i18n
- mat-flat-button
- (click)="onCheckout(priceId)"
- >
- Upgrade
- </button>
- <div *ngIf="price" class="mt-1">
- <ng-container *ngIf="coupon"
- ><del class="text-muted"
- >{{ baseCurrency }}&nbsp;{{ price }}</del
- >&nbsp;{{ baseCurrency }}&nbsp;{{ price - coupon
- }}</ng-container
+ <div *ngIf="user?.subscription?.type === 'Basic'">
+ <ng-container *ngIf="hasPermissionForSubscription">
+ <button
+ color="primary"
+ i18n
+ mat-flat-button
+ (click)="onCheckout(priceId)"
>
- <ng-container *ngIf="!coupon"
- >{{ baseCurrency }}&nbsp;{{ price }}</ng-container
- >&nbsp;<span i18n>per year</span>
- </div>
+ Upgrade
+ </button>
+ <div *ngIf="price" class="mt-1">
+ <ng-container *ngIf="coupon"
+ ><del class="text-muted"
+ >{{ baseCurrency }}&nbsp;{{ price }}</del
+ >&nbsp;{{ baseCurrency }}&nbsp;{{ price - coupon
+ }}</ng-container
+ >
+ <ng-container *ngIf="!coupon"
+ >{{ baseCurrency }}&nbsp;{{ price }}</ng-container
+ >&nbsp;<span i18n>per year</span>
+ </div>
+ </ng-container>
<a
*ngIf="!user?.subscription?.expiresAt"
class="mr-2 my-2"