account for no funds on zap debounce

This commit is contained in:
keyan 2023-07-09 13:08:56 -05:00
parent e8aa0a4dae
commit 34ba823bd4
1 changed files with 1 additions and 0 deletions

View File

@ -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} />