replaced console with the toast insterd

This commit is contained in:
RezHackXYZ 2025-06-01 12:25:08 +05:30
parent e558f3abef
commit b7047b2a19
11 changed files with 7 additions and 31 deletions

View file

@ -1,4 +1,5 @@
import { supabase } from "$lib/supabase.js";
import toast from "svelte-5-french-toast";
import { players } from "./HostsData.svelte.js";
export async function GetCurrentPlayers(gamePin) {
@ -7,10 +8,8 @@ export async function GetCurrentPlayers(gamePin) {
.select("playername")
.eq("gameid", Number(gamePin));
console.log("Current players data:", JSON.stringify(data));
if (error) {
console.error("Error fetching players:", error);
toast.error("Error fetching players:"+ error);
return;
}