Skip to content

Commit

Permalink
resolve pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
prasunna09 committed Jan 24, 2024
1 parent bddeb7c commit 04014be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/router/src/connector/iatapay/transformers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,15 @@ impl<T>
{
type Error = error_stack::Report<errors::ConnectorError>;
fn try_from(
(_currency_unit, _currency, _amount, item): (
(currency_unit, currency, amount, item): (
&types::api::CurrencyUnit,
types::storage::enums::Currency,
i64,
T,
),
) -> Result<Self, Self::Error> {
Ok(Self {
amount: connector_util::to_currency_base_unit_asf64(_amount, _currency)?,
amount: connector_util::get_amount_as_f64(currency_unit, amount, currency)?,
router_data: item,
})
}
Expand Down

0 comments on commit 04014be

Please sign in to comment.