Skip 'invoice not found' errors

This commit is contained in:
ekzyis 2023-07-22 22:06:04 +02:00
parent 85162b6d33
commit 28ea5ab70e
1 changed files with 3 additions and 1 deletions

View File

@ -62,7 +62,9 @@ const Invoice = ({ id, hash, errorCount, repeat, ...props }) => {
variables: { id } variables: { id }
}) })
if (error) { if (error) {
console.log(error) if (error.message?.includes('invoice not found')) {
return
}
return <div>error</div> return <div>error</div>
} }
if (!data || loading) { if (!data || loading) {