1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-09 05:00:10 +00:00

Ensure proper return type when flag is inactive.

This commit is contained in:
Miles Blackwood
2025-05-02 12:51:24 -04:00
parent b22cde384a
commit 49d6c8407c

View File

@@ -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);