mirror of
https://github.com/bitwarden/browser
synced 2026-02-07 12:13:45 +00:00
* fix(vault): preserve card brand when editing existing card Fixes #16978 The brand field was not being restored when editing an existing card cipher, causing it to show '--Select--' and potentially lose the brand data when saving. Added the brand field to initFromExistingCipher() to properly restore the card brand when opening a card for editing. Also updated the test to verify all card fields including brand, expMonth, and expYear are properly initialized from existing cipher data. * fix: add brand to OptionalInitialValues interface Addresses review feedback from @jengstrom-bw in PR #18381. The brand field was being used in card-details-section.component.ts but wasn't defined in the OptionalInitialValues type, causing a TypeScript compilation error. Adds brand?: string; to the Credit Card Information section of OptionalInitialValues in cipher-form-config.service.ts. * test: add coverage for initFromExistingCipher brand logic
Vault
This lib represents the public API of the Vault team at Bitwarden. Modules are imported using @bitwarden/vault.