Merge branch 'payment' into 'staging'

РС принимает число

See merge request frontend/marketplace!138
This commit is contained in:
Nastya 2024-02-23 00:04:14 +00:00
commit e36fc7e303
2 changed files with 3 additions and 3 deletions

@ -49,7 +49,7 @@ export async function sendPayment({
}
}
export const sendRSPayment = async (money: string): Promise<string | null> => {
export const sendRSPayment = async (money: number): Promise<string | null> => {
try {
await makeRequest<unknown, string>({
url: apiUrl + "/wallet/rspay",

@ -196,7 +196,7 @@ export default function Payment() {
return;
}
const sendRSPaymentError = await sendRSPayment(paymentValueField);
const sendRSPaymentError = await sendRSPayment(Number(paymentValueField));
if (sendRSPaymentError) {
return enqueueSnackbar(sendRSPaymentError);
@ -279,7 +279,7 @@ export default function Payment() {
return;
}
const sendRSPaymentError = await sendRSPayment(paymentValueField);
const sendRSPaymentError = await sendRSPayment(Number(paymentValueField));
if (sendRSPaymentError) {
return enqueueSnackbar(sendRSPaymentError);