Remove FIXMEs
Rebase on master seemed to have fixed these, weird
This commit is contained in:
parent
2aa0c9bc99
commit
9228328d3b
@ -31,7 +31,6 @@ export function useWallet (name) {
|
|||||||
|
|
||||||
const [config, saveConfig, clearConfig] = useConfig(wallet)
|
const [config, saveConfig, clearConfig] = useConfig(wallet)
|
||||||
|
|
||||||
// FIXME: This throws 'TypeError: Cannot read properties of undefined (reading 'length')' when I disable LNbits
|
|
||||||
const sendPayment = useCallback(async (bolt11) => {
|
const sendPayment = useCallback(async (bolt11) => {
|
||||||
const hash = bolt11Tags(bolt11).payment_hash
|
const hash = bolt11Tags(bolt11).payment_hash
|
||||||
logger.info('sending payment:', `payment_hash=${hash}`)
|
logger.info('sending payment:', `payment_hash=${hash}`)
|
||||||
@ -100,8 +99,6 @@ function useConfig (wallet) {
|
|||||||
if (!wallet) return []
|
if (!wallet) return []
|
||||||
|
|
||||||
if (wallet.sendPayment) {
|
if (wallet.sendPayment) {
|
||||||
// FIXME: this throws 'Error: Should have a queue' when I enable LNbits
|
|
||||||
// probably because of conditional hooks?
|
|
||||||
return useLocalConfig(wallet)
|
return useLocalConfig(wallet)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user