Ignore wallet configuration errors in QR code
This commit is contained in:
parent
974e897753
commit
00f9e05dd7
@ -8,7 +8,7 @@ import Bolt11Info from './bolt11-info'
|
|||||||
import { useQuery } from '@apollo/client'
|
import { useQuery } from '@apollo/client'
|
||||||
import { INVOICE } from '@/fragments/wallet'
|
import { INVOICE } from '@/fragments/wallet'
|
||||||
import { FAST_POLL_INTERVAL, SSR } from '@/lib/constants'
|
import { FAST_POLL_INTERVAL, SSR } from '@/lib/constants'
|
||||||
import { WalletError } from '@/wallets/errors'
|
import { WalletConfigurationError } from '@/wallets/errors'
|
||||||
import ItemJob from './item-job'
|
import ItemJob from './item-job'
|
||||||
import Item from './item'
|
import Item from './item'
|
||||||
import { CommentFlat } from './comment'
|
import { CommentFlat } from './comment'
|
||||||
@ -104,7 +104,7 @@ export default function Invoice ({
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{/* TODO: handle aggregated wallet errors */}
|
{/* 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 }}>
|
<div className='text-center fw-bold text-info mb-3' style={{ lineHeight: 1.25 }}>
|
||||||
Paying from attached wallet failed:
|
Paying from attached wallet failed:
|
||||||
<code> {walletError.message}</code>
|
<code> {walletError.message}</code>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user