fix some bugs

This commit is contained in:
2026-07-21 22:26:46 +03:30
parent 7c2248bb00
commit 2f64c6cce7
24 changed files with 707 additions and 16 deletions
+3 -1
View File
@@ -596,12 +596,13 @@ async function refreshWalletPanels() {
}
async function syncPargarWallet() {
if (!userInfo.value?.id || !pargarWalletCanSync.value) return
if (!userInfo.value?.id || !pargarWalletCanSync.value || pargarSyncLoading.value) return
pargarSyncLoading.value = true
try {
const res = await syncCustomerWalletFromPargar(userInfo.value.id)
const applied =
res.ok ||
(res.result?.documents?.acknowledged ?? 0) > 0 ||
(res.result?.documents?.applied ?? 0) > 0 ||
Boolean(res.result?.mande?.applied)
@@ -620,6 +621,7 @@ async function syncPargarWallet() {
const status = (e as { response?: { status?: number } })?.response?.status
const applied =
Boolean(data?.ok) ||
(data?.result?.documents?.acknowledged ?? 0) > 0 ||
(data?.result?.documents?.applied ?? 0) > 0 ||
Boolean(data?.result?.mande?.applied)