edit payments history

This commit is contained in:
smanylov
2026-02-25 12:53:18 +07:00
parent 9da0a095cb
commit bc1d5d5337
5 changed files with 39 additions and 73 deletions
+9 -3
View File
@@ -192,12 +192,18 @@ export async function getUserPayments() {
const parsed = await response.json();
console.log(parsed);
return parsed;
return {
payments: parsed,
error: null
};
} else {
return null
throw 'error';
}
} catch (error) {
return null
return {
payments: [],
error: 'error'
};
}
}