Skip to content

Commit

Permalink
fix: return none instead of err when payment method data is not found…
Browse files Browse the repository at this point in the history
… for bank debit during listing (#2967)
  • Loading branch information
Chethan-rao authored Nov 23, 2023
1 parent b2f7dd1 commit 5cc829a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/router/src/core/payment_methods/cards.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2459,8 +2459,7 @@ async fn get_bank_account_connector_details(
}))
}
},
None => Err(errors::ApiErrorResponse::InternalServerError.into())
.attach_printable("Unable to fetch payment method data"),
None => Ok(None),
}
}

Expand Down

0 comments on commit 5cc829a

Please sign in to comment.