Mauricio Araujo 2 лет назад
Родитель
Сommit
7f5c0f0fa4
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 1
      dashboard/src/lib/hooks/useStripe.tsx
  2. 1 0
      internal/billing/stripe.go

+ 1 - 1
dashboard/src/lib/hooks/useStripe.tsx

@@ -421,7 +421,7 @@ export const useReferralDetails = (): TGetReferralDetails => {
 export const useCustomerInvoices = (): TGetInvoices => {
   const { currentProject } = useContext(Context);
 
-  // Fetch current plan
+  // Fetch customer invoices
   const invoicesReq = useQuery(
     ["getCustomerInvoices", currentProject?.id],
     async (): Promise<InvoiceList | null> => {

+ 1 - 0
internal/billing/stripe.go

@@ -244,6 +244,7 @@ func (s StripeClient) GetPublishableKey(ctx context.Context) (key string) {
 	return s.PublishableKey
 }
 
+// PopulateInvoiceURLs will populate the invoice hosted URL for each invoice
 func (s StripeClient) PopulateInvoiceURLs(ctx context.Context, invoices []types.Invoice) (invoiceList []types.Invoice, err error) {
 	ctx, span := telemetry.NewSpan(ctx, "populate-invoice-urls")
 	defer span.End()