chore: add back zap button to donate page

This commit is contained in:
2023-01-24 15:24:50 +00:00
parent 90291eba96
commit e6a831ef8c
4 changed files with 12 additions and 6 deletions

View File

@ -5,7 +5,7 @@ import { MetadataCache } from "Db/User";
import { HexKey } from "Nostr";
import { System } from "Nostr/System";
export default function useProfile(pubKey: HexKey | Array<HexKey> | undefined): Map<HexKey, MetadataCache> | undefined {
export default function useProfile(pubKey?: HexKey | Array<HexKey> | undefined): Map<HexKey, MetadataCache> | undefined {
const user = useLiveQuery(async () => {
let userList = new Map<HexKey, MetadataCache>();
if (pubKey) {