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:
@@ -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",
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user