From 49d6c8407c7c28f4cfc83d50b01b0214614e03e1 Mon Sep 17 00:00:00 2001 From: Miles Blackwood Date: Fri, 2 May 2025 12:51:24 -0400 Subject: [PATCH] Ensure proper return type when flag is inactive. --- .../background/overlay-notifications.background.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/browser/src/autofill/background/overlay-notifications.background.ts b/apps/browser/src/autofill/background/overlay-notifications.background.ts index a6349d9b954..6186ffaf128 100644 --- a/apps/browser/src/autofill/background/overlay-notifications.background.ts +++ b/apps/browser/src/autofill/background/overlay-notifications.background.ts @@ -499,10 +499,14 @@ export class OverlayNotificationsBackground implements OverlayNotificationsBackg private async getSecurityTaskAndCipherForLoginData( modifyLoginData: ModifyLoginCipherFormData, activeUserId: UserId, - ) { + ): Promise<{ + securityTask: SecurityTask | undefined; + cipher: CipherView | undefined; + uri: ModifyLoginCipherFormData["uri"]; + }> { const shouldGetTasks: boolean = await this.notificationBackground.getNotificationFlag(); if (!shouldGetTasks) { - return; + return { cipher: undefined, securityTask: undefined, uri: modifyLoginData.uri }; } const tasks: SecurityTask[] = await this.notificationBackground.getSecurityTasks(activeUserId);