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 { 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> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user