refactor: minor code cleanup
gitea/hedera-web/pipeline/pr-beta This commit looks good Details

This commit is contained in:
taro 2025-03-18 22:11:01 -03:00
parent 49d8165395
commit fe87f05efc
1 changed files with 2 additions and 4 deletions

View File

@ -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;
@ -63,8 +63,6 @@ const onConfirmPay = async () => {
await tpv.pay(amountToPay.value); await tpv.pay(amountToPay.value);
}; };
onUserId(getDebt);
</script> </script>
<template> <template>