File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed 
src/Exceptionless.Web/Controllers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ public async Task<ActionResult<Invoice>> GetInvoiceAsync(string id)
239239            OrganizationId  =  organization . Id , 
240240            OrganizationName  =  organization . Name , 
241241            Date  =  stripeInvoice . Created , 
242-             Paid  =  stripeInvoice . Status   ==   "paid" , 
242+             Paid  =  String . Equals ( stripeInvoice . Status ,   "paid" ) , 
243243            Total  =  stripeInvoice . Total  /  100.0m 
244244        } ; 
245245
@@ -260,7 +260,7 @@ public async Task<ActionResult<Invoice>> GetInvoiceAsync(string id)
260260            invoice . Items . Add ( item ) ; 
261261        } 
262262
263-         var  coupon  =  stripeInvoice . Discounts ? . FirstOrDefault ( ) ? . Coupon ; 
263+         var  coupon  =  stripeInvoice . Discounts ? . FirstOrDefault ( d  =>   d . Deleted   is   false ) ? . Coupon ; 
264264        if  ( coupon  is  not null ) 
265265        { 
266266            if  ( coupon . AmountOff . HasValue ) 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments