Skip to content

Commit

Permalink
fix: Correct null id check in retrieveStripeCustomer
Browse files Browse the repository at this point in the history
  • Loading branch information
casey-matt committed Nov 9, 2024
1 parent d94772e commit 6c28492
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 6c28492

Please sign in to comment.