fix(#106): Ensure account page loads when there are no transactions

This commit is contained in:
Josh Creek
2024-11-19 21:58:33 +00:00
parent 3f037bf64e
commit 8569048c3f
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -627,8 +627,8 @@ const getUserTransactions = async (
.single();
if (error) {
console.error('Error retrieving user data:', error.message);
throw new Error('Failed to fetch user data');
logger.error('Error retrieving user data:', error.message);
return;
}
const customerId = data?.stripe_customer_id;