Skip to content

Commit

Permalink
Merge pull request #144 from casey-matt/bug/fix-retrieveStripeCustomer
Browse files Browse the repository at this point in the history
fix: Correct null id check in retrieveStripeCustomer
  • Loading branch information
chrisvdm authored Nov 14, 2024
2 parents d94772e + 6c28492 commit a031a0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/services/customers/customers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const retrieveStripeCustomer = async ({
}: QueryRetrieveStripeCustomerArgs): Promise<ParsedStripeResponse<Stripe.Customer | Stripe.DeletedCustomer>> => {
const { id, addProps } = data ?? {};

if (id !== null) {
if (id == null) {
throw nonNilAssertionError("retrieveStripeCustomer:id", data);
}

Expand Down

0 comments on commit a031a0e

Please sign in to comment.