fix: use Salix to get the list of confirmed orders #124

Merged
jsegarra merged 7 commits from ldragan/hedera-web:taro/confirmed-orders into beta 2025-03-28 13:32:03 +00:00
1 changed files with 8 additions and 2 deletions
Showing only changes of commit 2593876813 - Show all commits
src/pages/Ecomerce

View File

@ -64,16 +64,22 @@ const onConfirmPay = async () => {
await tpv.pay(amountToPay.value);
};
watch(
const onUserId = (cb) => watch(
() => userStore?.user?.id,
async userId => {
if (userId) {
await getDebt(userId);
try {
await cb(userId);
} catch (error) {
console.error(error);
}
}
},
{ immediate: true }
);
onUserId(getDebt);
</script>
<template>