Skip 'invoice not found' errors
This commit is contained in:
		
							parent
							
								
									85162b6d33
								
							
						
					
					
						commit
						28ea5ab70e
					
				@ -62,7 +62,9 @@ const Invoice = ({ id, hash, errorCount, repeat, ...props }) => {
 | 
			
		||||
    variables: { id }
 | 
			
		||||
  })
 | 
			
		||||
  if (error) {
 | 
			
		||||
    console.log(error)
 | 
			
		||||
    if (error.message?.includes('invoice not found')) {
 | 
			
		||||
      return
 | 
			
		||||
    }
 | 
			
		||||
    return <div>error</div>
 | 
			
		||||
  }
 | 
			
		||||
  if (!data || loading) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user