mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
feat(balance): per-method quick amounts on top-up page
This commit is contained in:
@@ -375,7 +375,11 @@ export default function TopUpAmount() {
|
||||
}
|
||||
};
|
||||
|
||||
const quickAmounts = [100, 300, 500, 1000].filter((a) => a >= minRubles && a <= maxRubles);
|
||||
const quickAmounts = (
|
||||
method.quick_amounts && method.quick_amounts.length > 0
|
||||
? method.quick_amounts.map((kopeks) => kopeks / 100)
|
||||
: [100, 300, 500, 1000]
|
||||
).filter((a) => a >= minRubles && a <= maxRubles);
|
||||
const currencyDecimals = targetCurrency === 'IRR' || targetCurrency === 'RUB' ? 0 : 2;
|
||||
const getQuickValue = (rub: number) =>
|
||||
targetCurrency === 'IRR'
|
||||
|
||||
Reference in New Issue
Block a user