account for no funds on zap debounce
This commit is contained in:
		
							parent
							
								
									e8aa0a4dae
								
							
						
					
					
						commit
						34ba823bd4
					
				@ -175,6 +175,7 @@ export default function UpVote ({ item, className, pendingSats, setPendingSats }
 | 
			
		||||
          variables: { id: item.id, sats: pendingSats + sats }
 | 
			
		||||
        })
 | 
			
		||||
      } catch (error) {
 | 
			
		||||
        timerRef.current && setPendingSats(0)
 | 
			
		||||
        if (error.toString().includes('insufficient funds')) {
 | 
			
		||||
          showModal(onClose => {
 | 
			
		||||
            return <FundError onClose={onClose} />
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user