Ignore wallet configuration errors in QR code

This commit is contained in:
ekzyis 2024-11-26 07:34:39 +01:00
parent 974e897753
commit 00f9e05dd7
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import Bolt11Info from './bolt11-info'
import { useQuery } from '@apollo/client'
import { INVOICE } from '@/fragments/wallet'
import { FAST_POLL_INTERVAL, SSR } from '@/lib/constants'
import { WalletError } from '@/wallets/errors'
import { WalletConfigurationError } from '@/wallets/errors'
import ItemJob from './item-job'
import Item from './item'
import { CommentFlat } from './comment'
@ -104,7 +104,7 @@ export default function Invoice ({
return (
<>
{/* TODO: handle aggregated wallet errors */}
{walletError instanceof WalletError &&
{walletError && !(walletError instanceof WalletConfigurationError) &&
<div className='text-center fw-bold text-info mb-3' style={{ lineHeight: 1.25 }}>
Paying from attached wallet failed:
<code> {walletError.message}</code>