aboutsummaryrefslogtreecommitdiffstats
path: root/src/routes/(app)
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2024-12-29 18:19:47 -0800
committerAdam Soltys <[email protected]>2024-12-29 18:19:47 -0800
commit83be80fe3d5f4179c66cd4f4addae50927e2485b (patch)
treecd6a790009dd22183e7921b579139d490835a4ae /src/routes/(app)
parentbb277198e50ab3d237ee7a6cba4b35a8105e8698 (diff)
parent6ec41bac23d941b81b93883d00602c8ccec9ff35 (diff)
downloadcoinos-ui-83be80fe3d5f4179c66cd4f4addae50927e2485b.tar.gz
coinos-ui-83be80fe3d5f4179c66cd4f4addae50927e2485b.zip
Merge branch 'nostr-login'
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">