Run prettier
This commit is contained in:
@ -57,6 +57,6 @@ export interface NutStashBackup {
|
||||
mints: [
|
||||
{
|
||||
mintURL: string;
|
||||
}
|
||||
},
|
||||
];
|
||||
}
|
||||
|
@ -126,7 +126,7 @@ export class LNCWallet implements LNWallet {
|
||||
err => {
|
||||
this.#log(err);
|
||||
reject(err);
|
||||
}
|
||||
},
|
||||
);
|
||||
});
|
||||
}
|
||||
|
@ -182,7 +182,7 @@ export class NostrConnectWallet implements LNWallet {
|
||||
],
|
||||
() => {
|
||||
// ignored
|
||||
}
|
||||
},
|
||||
);
|
||||
await this.#conn.SendAsync(evCommand);
|
||||
return await new Promise<T>((resolve, reject) => {
|
||||
|
@ -84,7 +84,7 @@ export class WebLNWallet implements LNWallet {
|
||||
await window.webln?.makeInvoice({
|
||||
amount: req.amount,
|
||||
defaultMemo: req.memo,
|
||||
})
|
||||
}),
|
||||
);
|
||||
if (rsp) {
|
||||
const invoice = prToWalletInvoice(rsp.paymentRequest);
|
||||
|
@ -248,7 +248,7 @@ window.document.addEventListener("close", () => {
|
||||
export function useWallet() {
|
||||
const wallet = useSyncExternalStore<WalletStoreSnapshot>(
|
||||
h => Wallets.hook(h),
|
||||
() => Wallets.snapshot()
|
||||
() => Wallets.snapshot(),
|
||||
);
|
||||
useEffect(() => {
|
||||
if (wallet.wallet?.isReady() === false && wallet.wallet.canAutoLogin()) {
|
||||
|
Reference in New Issue
Block a user