Skip to content

Commit 07384a5

Browse files
committed
ext: new feature alert
1 parent 58c8fa0 commit 07384a5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

extension/src/lib/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { AppSettings, BudgetSettings, PopupState } from "./types";
22

33
/** Update these 2 variables to alert the user for a major new update/version */
4-
export const LATEST_VERSION_ALERT_NUM = 4;
5-
export const LATEST_VERSION_ALERT_TEXT = "New: Detail views!";
4+
export const LATEST_VERSION_ALERT_NUM = 5;
5+
export const LATEST_VERSION_ALERT_TEXT = "New: Approve transactions!";
66

77
export const IS_DEV = import.meta.env.DEV && !import.meta.env.VITEST;
88
export const IS_PRODUCTION = import.meta.env.PROD;

extension/src/lib/state/alerts.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export const currentAlertsStorage = storage.defineItem<CurrentAlerts>(
1717
export const versionAlertStorage = storage.defineItem<number>(
1818
`sync:${STORAGE_KEYS.VersionAlert}`,
1919
{
20+
init: () => LATEST_VERSION_ALERT_NUM,
2021
fallback: LATEST_VERSION_ALERT_NUM,
2122
version: 2,
2223
migrations: {

0 commit comments

Comments
 (0)