Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hmbanan666 committed Jul 5, 2024
1 parent afa876f commit 9dc89c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/routes/[lang]/(website)/character/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
<script lang='ts'>
import { page } from '$app/stores'
import coinSmall from '$lib/assets/website/coin-64.png'
import type { Profile } from '@hmbanan666/chat-game-api'

Check failure on line 4 in src/routes/[lang]/(website)/character/+page.svelte

View workflow job for this annotation

GitHub Actions / lint

`@hmbanan666/chat-game-api` type import should occur before import of `$app/stores`
export let data
let profile = $page.data.profileData as Profile | null

Check failure on line 8 in src/routes/[lang]/(website)/character/+page.svelte

View workflow job for this annotation

GitHub Actions / lint

'profile' is never reassigned. Use 'const' instead
</script>

<section class='hero'>
Expand All @@ -14,7 +17,7 @@
<div class='currency'>
<img src={coinSmall} alt="" width='48' height='48' />
<div class='right'>
<p class='counter'>{$page.data.profileData.coins}</p>
<p class='counter'>{profile?.coins}</p>
<p class='description'>Монет</p>
</div>
</div>
Expand Down

0 comments on commit 9dc89c2

Please sign in to comment.