refactor: minor code cleanup
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
gitea/hedera-web/pipeline/pr-beta This commit looks good
Details
This commit is contained in:
parent
49d8165395
commit
a9816a5d00
|
@ -39,10 +39,10 @@ onMounted(async () => {
|
||||||
orders.value = myTickets.data;
|
orders.value = myTickets.data;
|
||||||
});
|
});
|
||||||
|
|
||||||
const getDebt = async (userId) => {
|
onUserId(async (userId) => {
|
||||||
const myClientDebt = await api.get(`clients/${userId}/getDebt`);
|
const myClientDebt = await api.get(`clients/${userId}/getDebt`);
|
||||||
debt.value = -myClientDebt.data;
|
debt.value = -myClientDebt.data;
|
||||||
}
|
});
|
||||||
|
|
||||||
const onPayClick = async () => {
|
const onPayClick = async () => {
|
||||||
showAmountToPayDialog.value = true;
|
showAmountToPayDialog.value = true;
|
||||||
|
@ -62,9 +62,6 @@ const onConfirmPay = async () => {
|
||||||
amountToPay.value = parseFloat(amount);
|
amountToPay.value = parseFloat(amount);
|
||||||
await tpv.pay(amountToPay.value);
|
await tpv.pay(amountToPay.value);
|
||||||
};
|
};
|
||||||
|
|
||||||
onUserId(getDebt);
|
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|
Loading…
Reference in New Issue