diff --git a/src/widgets/converter-page/ui/ConverterSection.module.css b/src/widgets/converter-page/ui/ConverterSection.module.css index 641de5e..cd799f5 100644 --- a/src/widgets/converter-page/ui/ConverterSection.module.css +++ b/src/widgets/converter-page/ui/ConverterSection.module.css @@ -89,7 +89,7 @@ } .field { - margin-bottom: 24px; + margin-bottom: 12px; } .fieldError { @@ -164,6 +164,7 @@ .swapWrap { display: flex; justify-content: center; + margin-bottom: 12px; } .swapBtn { diff --git a/src/widgets/converter-page/ui/ConverterSection.tsx b/src/widgets/converter-page/ui/ConverterSection.tsx index bc353b1..9229008 100644 --- a/src/widgets/converter-page/ui/ConverterSection.tsx +++ b/src/widgets/converter-page/ui/ConverterSection.tsx @@ -4,6 +4,7 @@ import { usePaymentQuote, usePaymentConfig, useCreateOrder } from '@features/pay import { CommissionPanel } from './CommissionPanel' import { AgreementCheck } from './AgreementCheck' import styles from './ConverterSection.module.css' +import { GAS_PRICE } from '@shared/config/constants' export function ConverterSection() { const c = useConverter({ usdtRate: 0 }) @@ -13,7 +14,7 @@ export function ConverterSection() { const { data: config } = usePaymentConfig() const configUsdtRate = Number(config?.usdt_exchange_rate) || 0 - const gasPriceRub = Number(config?.gas_fee) + const gasPriceRub = Number(config?.gas_fee) || GAS_PRICE const rubTotal = quote?.total_price ?? '' const rubTotalNum = Number(rubTotal) || 0