From f7deef102da4473fa2f8cd76714851b6c02cb4f6 Mon Sep 17 00:00:00 2001 From: Ben McFerren Date: Tue, 20 Jan 2026 18:25:33 -0500 Subject: [PATCH] PM-29919 resolved pr comments --- .../send-details/send-details.component.spec.ts | 2 +- .../components/send-details/send-details.component.ts | 10 +++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/libs/tools/send/send-ui/src/send-form/components/send-details/send-details.component.spec.ts b/libs/tools/send/send-ui/src/send-form/components/send-details/send-details.component.spec.ts index 2b9d307cf85..f816c9d5ce4 100644 --- a/libs/tools/send/send-ui/src/send-form/components/send-details/send-details.component.spec.ts +++ b/libs/tools/send/send-ui/src/send-form/components/send-details/send-details.component.spec.ts @@ -100,7 +100,7 @@ describe("SendDetailsComponent", () => { expect(component).toBeTruthy(); }); - it("should initialize authType to null if no password or emails", () => { + it("should initialize authType to None if no password or emails", () => { expect(component.sendDetailsForm.value.authType).toBe(AuthType.None); }); diff --git a/libs/tools/send/send-ui/src/send-form/components/send-details/send-details.component.ts b/libs/tools/send/send-ui/src/send-form/components/send-details/send-details.component.ts index b7232734fde..2b2d8596815 100644 --- a/libs/tools/send/send-ui/src/send-form/components/send-details/send-details.component.ts +++ b/libs/tools/send/send-ui/src/send-form/components/send-details/send-details.component.ts @@ -204,7 +204,7 @@ export class SendDetailsComponent implements OnInit { .split(",") .map((e) => e.trim()) .filter((e) => e.length > 0) - : [], + : null, } as unknown as SendView); }); }); @@ -245,12 +245,8 @@ export class SendDetailsComponent implements OnInit { name: this.originalSendView.name, selectedDeletionDatePreset: this.originalSendView.deletionDate.toString(), password: this.hasPassword ? "************" : null, - authType: this.hasPassword - ? AuthType.Password - : this.originalSendView.emails?.length > 0 - ? AuthType.Email - : AuthType.None, - emails: this.originalSendView.emails?.join(", "), + authType: this.originalSendView.authType, + emails: this.originalSendView.emails?.join(", ") ?? null, }); if (this.hasPassword) {