fix(pm_auth): Fixed deserialize logic in pm_auth core (#5615)

This commit is contained in:
Sarthak Soni
2024-08-14 18:22:18 +05:30
committed by GitHub
parent 2249010ceb
commit f66b09fed5

View File

@ -346,7 +346,9 @@ async fn store_bank_details_in_payment_methods(
> = HashMap::new();
for pm in payment_methods {
if pm.payment_method == Some(enums::PaymentMethod::BankDebit) {
if pm.payment_method == Some(enums::PaymentMethod::BankDebit)
&& pm.payment_method_data.is_some()
{
let bank_details_pm_data = crypto_operation::<serde_json::Value, masking::WithType>(
&(&state).into(),
type_name!(storage::PaymentMethod),