Merge branch 'payment' into 'staging'
РС принимает число See merge request frontend/marketplace!138
This commit is contained in:
commit
e36fc7e303
@ -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 {
|
try {
|
||||||
await makeRequest<unknown, string>({
|
await makeRequest<unknown, string>({
|
||||||
url: apiUrl + "/wallet/rspay",
|
url: apiUrl + "/wallet/rspay",
|
||||||
|
@ -196,7 +196,7 @@ export default function Payment() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const sendRSPaymentError = await sendRSPayment(paymentValueField);
|
const sendRSPaymentError = await sendRSPayment(Number(paymentValueField));
|
||||||
|
|
||||||
if (sendRSPaymentError) {
|
if (sendRSPaymentError) {
|
||||||
return enqueueSnackbar(sendRSPaymentError);
|
return enqueueSnackbar(sendRSPaymentError);
|
||||||
@ -279,7 +279,7 @@ export default function Payment() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const sendRSPaymentError = await sendRSPayment(paymentValueField);
|
const sendRSPaymentError = await sendRSPayment(Number(paymentValueField));
|
||||||
|
|
||||||
if (sendRSPaymentError) {
|
if (sendRSPaymentError) {
|
||||||
return enqueueSnackbar(sendRSPaymentError);
|
return enqueueSnackbar(sendRSPaymentError);
|
||||||
|
Loading…
Reference in New Issue
Block a user