Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions components/urwisek/games/FeedingGame.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use client'
import React, { useState, useRef } from 'react'
import { motion, useAnimation, AnimatePresence, PanInfo } from 'framer-motion'
import { toast } from 'sonner'

export default function FeedingGame({ onComplete }: { onComplete: () => void }) {
const [foodCount, setFoodCount] = useState(0)
Expand All @@ -20,11 +21,10 @@ export default function FeedingGame({ onComplete }: { onComplete: () => void })

if (!response.ok) {
// Serwist przechwyci to nieudane żądanie i doda do kolejki IndexedDB
console.log("Żądanie nieudane - Serwist dodał je do kolejki synchronizacji.");
}
} catch (_err) {
// Fetch rzuca wyjątek przy całkowitym braku sieci
console.log("Brak sieci. Punkty zostaną wysłane automatycznie w tle po odzyskaniu połączenia.");
toast.info("Brak sieci. Punkty zostaną wysłane automatycznie w tle po odzyskaniu połączenia.");
}
};

Expand Down