mirror of
https://github.com/bitwarden/browser
synced 2025-12-18 09:13:33 +00:00
15 lines
429 B
TypeScript
15 lines
429 B
TypeScript
import { BILLING_DISK, UserKeyDefinition } from "../../platform/state";
|
|
import { PaymentMethodWarning } from "../models/domain/payment-method-warning";
|
|
|
|
export const PAYMENT_METHOD_WARNINGS_KEY = UserKeyDefinition.record<PaymentMethodWarning>(
|
|
BILLING_DISK,
|
|
"paymentMethodWarnings",
|
|
{
|
|
deserializer: (warnings) => ({
|
|
...warnings,
|
|
savedAt: new Date(warnings.savedAt),
|
|
}),
|
|
clearOn: ["logout"],
|
|
},
|
|
);
|