mirror of
https://github.com/bitwarden/browser
synced 2025-12-21 10:43:35 +00:00
Use user definition clearon events for billing (#8589)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { BILLING_DISK, KeyDefinition } from "../../platform/state";
|
||||
import { BILLING_DISK, UserKeyDefinition } from "../../platform/state";
|
||||
import { PaymentMethodWarning } from "../models/domain/payment-method-warning";
|
||||
|
||||
export const PAYMENT_METHOD_WARNINGS_KEY = KeyDefinition.record<PaymentMethodWarning>(
|
||||
export const PAYMENT_METHOD_WARNINGS_KEY = UserKeyDefinition.record<PaymentMethodWarning>(
|
||||
BILLING_DISK,
|
||||
"paymentMethodWarnings",
|
||||
{
|
||||
@@ -9,5 +9,6 @@ export const PAYMENT_METHOD_WARNINGS_KEY = KeyDefinition.record<PaymentMethodWar
|
||||
...warnings,
|
||||
savedAt: new Date(warnings.savedAt),
|
||||
}),
|
||||
clearOn: ["logout"],
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user