Skip to content

Commit 1a23578

Browse files
committed
fix(registry): initialize sample user directly in Follow page
1 parent 83e1884 commit 1a23578

File tree

1 file changed

+5
-1
lines changed
  • svelte/registry/src/routes/(app)/components/follow

1 file changed

+5
-1
lines changed

svelte/registry/src/routes/(app)/components/follow/+page.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
title: 'Follow',
2222
description: 'Follow buttons for Nostr users and topics'
2323
};
24-
let sampleUser = $state<NDKUser | undefined>();
24+
25+
// Initialize sample user directly with npub
26+
let sampleUser = $state<NDKUser | undefined>(
27+
NDKUser.fromNpub("npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft")
28+
);
2529
2630
// Components section configuration
2731
const componentsSection = {

0 commit comments

Comments
 (0)