урлы переадресации автерпей, запрос юмани в копейках целым числом

This commit is contained in:
Nastya 2024-04-06 01:10:07 +03:00
parent 9e188fba5c
commit 5d2d8396ca
2 changed files with 2 additions and 2 deletions

@ -37,7 +37,7 @@ const { domain, pathname } = (() => {
const host = window.location.hostname; const host = window.location.hostname;
return { return {
domain: (host.includes("s") ? "s" : "") + from, domain: (host.includes("s") ? "s" : "") + from,
pathname: from === "hub" ? "/wallet" : "" pathname: from === "hub" ? "/tariffs" : "/list"
}; };
})(); })();

@ -102,7 +102,7 @@ export default function Payment() {
fromSquiz, fromSquiz,
body: { body: {
type: selectedPaymentMethod, type: selectedPaymentMethod,
amount: Number(paymentValueField) * 100, amount: Math.floor(Number(paymentValueField) * 100),
}, },
paymentPurpose: notEnoughMoneyAmount ? "paycart" : "replenishwallet", paymentPurpose: notEnoughMoneyAmount ? "paycart" : "replenishwallet",
}); });