mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 10:25:06 +03:00
cleanup unused code
This commit is contained in:
1 parent
c28d9b4803
commit
4f34524a47
1 file changed
+2
-2
@@ -19,7 +19,7 @@ const ParticlesCanvas = ({ supabase, users }: { supabase?: SupabaseClient; users
|
||||
> | null>(null)
|
||||
|
||||
const loadUsers = async () => {
|
||||
return await supabase!.from('lw8_tickets_golden').select('id, golden', { count: 'exact' })
|
||||
return await supabase!.from('lw8_tickets_golden').select('username, golden', { count: 'exact' })
|
||||
}
|
||||
|
||||
// Update particles live when new tickets are generated
|
||||
@@ -119,7 +119,7 @@ const ParticlesCanvas = ({ supabase, users }: { supabase?: SupabaseClient; users
|
||||
config={config}
|
||||
animate={animate}
|
||||
>
|
||||
{(!!user.id && user.golden) || (config.showGold && Math.random() <= 0.5) ? (
|
||||
{config.showGold && Math.random() <= 0.5 ? (
|
||||
<>
|
||||
<GoldGeometry />
|
||||
<GoldMaterial />
|
||||
|
||||
Reference in new issue
Block a user