Fix a few bugs, improve storage adapter

This commit is contained in:
Jon Staab
2024-09-04 15:04:47 -07:00
parent b8e69154af
commit 9b44aac584
8 changed files with 64 additions and 41 deletions
+9 -2
View File
@@ -54,7 +54,14 @@ export const {
export const deriveZapperForPubkey = (pubkey: string, request: Partial<SubscribeRequest> = {}) =>
derived(
[zappersByLnurl, deriveProfile(pubkey, request)],
([$zappersByLnurl, $profile]) =>
$profile?.lnurl ? $zappersByLnurl.get($profile?.lnurl) : undefined
([$zappersByLnurl, $profile]) => {
if (!$profile?.lnurl) {
return undefined
}
loadZapper($profile.lnurl)
return $zappersByLnurl.get($profile?.lnurl)
}
)