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

View File

@ -175,6 +175,7 @@ export default function UpVote ({ item, className, pendingSats, setPendingSats }
variables: { id: item.id, sats: pendingSats + sats } variables: { id: item.id, sats: pendingSats + sats }
}) })
} catch (error) { } catch (error) {
timerRef.current && setPendingSats(0)
if (error.toString().includes('insufficient funds')) { if (error.toString().includes('insufficient funds')) {
showModal(onClose => { showModal(onClose => {
return <FundError onClose={onClose} /> return <FundError onClose={onClose} />