From 28ea5ab70ee2035dc9d1ac6160a17d033026f239 Mon Sep 17 00:00:00 2001 From: ekzyis Date: Sat, 22 Jul 2023 22:06:04 +0200 Subject: [PATCH] Skip 'invoice not found' errors --- lib/anonymous.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/anonymous.js b/lib/anonymous.js index 06807c1d..00b62d16 100644 --- a/lib/anonymous.js +++ b/lib/anonymous.js @@ -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
error
} if (!data || loading) {