aboutsummaryrefslogtreecommitdiffstats
path: root/src/components
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2022-09-24 09:03:38 -0700
committerAdam Soltys <[email protected]>2022-09-24 09:05:39 -0700
commit18dc54c1e75f848e7a71020573283d4347b66836 (patch)
tree7fb7e317aadc9374721a7a853212d5d6c0fa0190 /src/components
parentd334bbade720864649a23b8dab022cb07058684b (diff)
downloadcoinos-ui-18dc54c1e75f848e7a71020573283d4347b66836.tar.gz
coinos-ui-18dc54c1e75f848e7a71020573283d4347b66836.zip
fix public pages
Diffstat (limited to 'src/components')
-rw-r--r--src/components/AppHeader.svelte10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/components/AppHeader.svelte b/src/components/AppHeader.svelte
index 1ac72f87..04426bd3 100644
--- a/src/components/AppHeader.svelte
+++ b/src/components/AppHeader.svelte
@@ -1,6 +1,6 @@
<script>
import OutClick from 'svelte-outclick';
- import { user, newPayment, colorTheme, tempProfileFiles } from '$lib/store';
+ import { subject, user, newPayment, colorTheme, tempProfileFiles } from '$lib/store';
import { goto } from '$app/navigation';
import { Icon } from '$comp';
import { t } from '$lib/translations';
@@ -29,8 +29,8 @@
$: background =
$tempProfileFiles && $tempProfileFiles.banner
? `url(${$tempProfileFiles.banner})`
- : $user?.banner
- ? `url(/api/public/${$user.username}-banner.png)`
+ : $subject?.banner
+ ? `url(/api/public/${$subject.username}-banner.png)`
: undefined;
</script>
@@ -114,14 +114,14 @@
</a>
{/if}
</nav>
- {#if $user.profile}
+ {#if $subject?.profile}
<div
class="absolute {avatarPosition} rounded-full overflow-hidden text-center w-24 h-24 my-auto"
>
<img
src={$tempProfileFiles && $tempProfileFiles.profile
? $tempProfileFiles.profile
- : `/api/public/${$user.username}-profile.png`}
+ : `/api/public/${$subject.username}-profile.png`}
class="absolute w-full h-full object-cover object-center visible overflow-hidden"
/>
</div>