From 288b0cff2fd3e9ac0ff5727752fde4d7c81344db Mon Sep 17 00:00:00 2001 From: Jordan Aasen <166539328+jaasen-livefront@users.noreply.github.com> Date: Thu, 17 Oct 2024 06:28:02 -0700 Subject: [PATCH] fix send options viewsLeft (#11594) --- .../options/send-options.component.ts | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/libs/tools/send/send-ui/src/send-form/components/options/send-options.component.ts b/libs/tools/send/send-ui/src/send-form/components/options/send-options.component.ts index 10099479f1..c8122dd431 100644 --- a/libs/tools/send/send-ui/src/send-form/components/options/send-options.component.ts +++ b/libs/tools/send/send-ui/src/send-form/components/options/send-options.component.ts @@ -27,16 +27,16 @@ import { SendFormContainer } from "../../send-form-container"; templateUrl: "./send-options.component.html", standalone: true, imports: [ + CardComponent, + CheckboxModule, + CommonModule, + FormFieldModule, + IconButtonModule, + JslibModule, + ReactiveFormsModule, SectionComponent, SectionHeaderComponent, TypographyModule, - JslibModule, - CardComponent, - FormFieldModule, - ReactiveFormsModule, - IconButtonModule, - CheckboxModule, - CommonModule, ], }) export class SendOptionsComponent implements OnInit { @@ -61,10 +61,12 @@ export class SendOptionsComponent implements OnInit { return this.config.mode === "edit" && this.sendOptionsForm.value.maxAccessCount !== null; } - get viewsLeft(): number { - return this.sendOptionsForm.value.maxAccessCount - ? this.sendOptionsForm.value.maxAccessCount - this.sendOptionsForm.value.accessCount - : 0; + get viewsLeft() { + return String( + this.sendOptionsForm.value.maxAccessCount + ? this.sendOptionsForm.value.maxAccessCount - this.sendOptionsForm.value.accessCount + : 0, + ); } constructor(