Skip to content

Commit

Permalink
style: format with prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
lastarc committed Jul 19, 2024
1 parent 6dcd5a8 commit a5a6c47
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: Docker

on:
push:
branches: [ "main" ]
tags: [ 'v*.*.*' ]
branches: ['main']
tags: ['v*.*.*']
pull_request:
branches: [ "main" ]
branches: ['main']

env:
REGISTRY: ghcr.io
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/ui/navbar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@
<button
class="button is-text is-small dropdown-item navbar-item is-display-block"
on:click={() => {
newUsernameInput.value = $page.data.profile?.name || ''
editUsernameModalOpen = true
newUsernameInput.value = $page.data.profile?.name || '';
editUsernameModalOpen = true;
}}
>
Edit Username
Expand Down
10 changes: 6 additions & 4 deletions src/routes/auth/callback/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@
let profile: RecordModel | null = null;
try {
profile = await pb
.collection('profiles')
.getFirstListItem(pb.filter('user = {:user}', { user: pb.authStore.model.id }));
} catch (e) { /* noop */ }
.collection('profiles')
.getFirstListItem(pb.filter('user = {:user}', { user: pb.authStore.model.id }));
} catch (e) {
/* noop */
}
if (!profile) {
await pb.collection('profiles').create({
user: pb.authStore.model.id,
name: pb.authStore.model.username || pb.authStore.model.email.split('@')[0],
name: pb.authStore.model.username || pb.authStore.model.email.split('@')[0]
});
}
Expand Down

0 comments on commit a5a6c47

Please sign in to comment.