diff --git a/apps/labrinth/src/routes/internal/billing/payments.rs b/apps/labrinth/src/routes/internal/billing/payments.rs index 46118aa75c..00a2c17952 100644 --- a/apps/labrinth/src/routes/internal/billing/payments.rs +++ b/apps/labrinth/src/routes/internal/billing/payments.rs @@ -766,8 +766,13 @@ pub async fn retrieve_customer( customer_id: &CustomerId, expand: &[&str], ) -> Result { - let customer = RetrieveCustomer::new(customer_id.clone()) - .expand(expand.iter().map(|x| (*x).to_owned()).collect::>()) + let mut request = RetrieveCustomer::new(customer_id.clone()); + if !expand.is_empty() { + request = request + .expand(expand.iter().map(|x| (*x).to_owned()).collect::>()); + } + + let customer = request .send(client) .await .wrap_stripe_err("communicating with payment provider")?;