Skip to content

Commit

Permalink
chore(ceremony): format
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool committed Sep 19, 2024
1 parent 6417a61 commit 8589736
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions ceremony/src/lib/components/Contributions.svelte
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
<script lang="ts">
import Spinner from "$lib/components/Spinner.svelte"
import H4 from "$lib/components/typography/H4.svelte"
import Blink from "$lib/components/Blink.svelte"
import Text from "$lib/components/typography/Text.svelte"
import {getContributions} from "$lib/supabase"
import Spinner from "$lib/components/Spinner.svelte"
import H4 from "$lib/components/typography/H4.svelte"
import Blink from "$lib/components/Blink.svelte"
import Text from "$lib/components/typography/Text.svelte"
import { getContributions } from "$lib/supabase"
let intervalId: NodeJS.Timeout | number
let contributions = $state()
let intervalId: NodeJS.Timeout | number
let contributions = $state()
async function loadContributions() {
contributions = await getContributions()
}
async function loadContributions() {
contributions = await getContributions()
}
$effect(() => {
loadContributions()
intervalId = setInterval(loadContributions, 1000 * 5)
$effect(() => {
loadContributions()
intervalId = setInterval(loadContributions, 1000 * 5)
return () => {
if (intervalId) clearInterval(intervalId)
}
})
return () => {
if (intervalId) clearInterval(intervalId)
}
})
</script>
{#if contributions}

Expand Down
2 changes: 1 addition & 1 deletion ceremony/src/lib/supabase/queries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const queryContributions = async () => {
const { data, error } = await supabase
.from("users_contribution")
.select("public_key_hash, user_name, avatar_url")
.order('time_verified', { ascending: false })
.order("time_verified", { ascending: false })

return { data, error }
}
Expand Down

0 comments on commit 8589736

Please sign in to comment.