aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)
diff options
context:
space:
mode:
Diffstat (limited to 'src/routes/(app)')
-rw-r--r--src/routes/(app)/[username]/(profile)/+page.svelte9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/routes/(app)/[username]/(profile)/+page.svelte b/src/routes/(app)/[username]/(profile)/+page.svelte
index 05273bc5..53a994ad 100644
--- a/src/routes/(app)/[username]/(profile)/+page.svelte
+++ b/src/routes/(app)/[username]/(profile)/+page.svelte
@@ -1,4 +1,6 @@
<script>
+ import { browser } from "$app/environment";
+ import { onMount } from "svelte";
import { scale } from "svelte/transition";
import { btc, f, sat } from "$lib/utils";
import Account from "$comp/Account.svelte";
@@ -23,6 +25,13 @@
};
if (user) user.savings = 0;
+
+ let pk = $state();;
+ onMount(async () => {
+ if (browser) {
+ pk = await window.nostr.getPublicKey();
+ }
+ });
</script>
<div class="space-y-2">