Skip to content

Commit

Permalink
chore: add console.error in example app when API is not set (#275)
Browse files Browse the repository at this point in the history
  • Loading branch information
alfondotnet authored Jan 21, 2025
1 parent 8b51727 commit 3675f21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/rcbilling-demo/src/util/PurchasesLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ const loadPurchases: LoaderFunction<IPurchasesLoaderData> = async ({
customerInfo,
offering,
};
} catch {
} catch (error) {
console.error(error);
throw redirect("/");
}
};
Expand Down

0 comments on commit 3675f21

Please sign in to comment.