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

This commit is contained in:
Nastya 2024-02-23 03:02:22 +03:00
parent 65ff25a122
commit e81a5d50a6
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);