1
0
mirror of https://github.com/bitwarden/browser synced 2026-01-30 16:23:53 +00:00

[pm-8458] Migrate null to "never" instead of "fiveMinutes"

Signed-off-by: Ben Brooks <bbrooks@bitwarden.com>
This commit is contained in:
Ben Brooks
2026-01-12 09:08:30 -08:00
parent 4a2e0c6996
commit 4a58e64c1e
2 changed files with 3 additions and 3 deletions

View File

@@ -91,7 +91,7 @@ describe("ClearClipboardDelayToStringMigrator", () => {
);
});
it("should migrate null to fiveMinutes", async () => {
it("should migrate null to never", async () => {
helper.getAccounts.mockResolvedValue([{ userId: "user-1", account: {} }]);
helper.getFromUser.mockResolvedValue(null);
@@ -106,7 +106,7 @@ describe("ClearClipboardDelayToStringMigrator", () => {
name: "autofillSettingsLocal",
}),
}),
"fiveMinutes",
"never",
);
});

View File

@@ -60,7 +60,7 @@ export class ClearClipboardDelayToStringMigrator extends Migrator<74, 75> {
// Convert old integer/null values to new string values
switch (oldValue) {
case null:
newValue = NEW_CLEAR_CLIPBOARD_DELAY_VALUES.FIVE_MINUTES; // possibly confusing for users who explicitly set "never"
newValue = NEW_CLEAR_CLIPBOARD_DELAY_VALUES.NEVER;
break;
case 10:
newValue = NEW_CLEAR_CLIPBOARD_DELAY_VALUES.TEN_SECONDS;