This commit is contained in:
parent
7ff29904d9
commit
b5071fd420
@ -13,8 +13,6 @@ import Card from "@/components/card";
|
||||
import PlayerBadges from "@/components/player/player-badges";
|
||||
import { useIsMobile } from "@/hooks/use-is-mobile";
|
||||
|
||||
const REFRESH_INTERVAL = 5 * 60 * 1000; // 5 minutes
|
||||
|
||||
type Props = {
|
||||
initialPlayerData: ScoreSaberPlayer;
|
||||
initialScoreData?: ScoreSaberPlayerScoresPageToken;
|
||||
@ -36,7 +34,6 @@ export default function PlayerData({
|
||||
const { data, isLoading, isError } = useQuery({
|
||||
queryKey: ["player", player.id],
|
||||
queryFn: () => scoresaberService.lookupPlayer(player.id),
|
||||
refetchInterval: REFRESH_INTERVAL,
|
||||
});
|
||||
|
||||
if (data && (!isLoading || !isError)) {
|
||||
|
@ -11,7 +11,6 @@ import { Avatar, AvatarImage } from "../ui/avatar";
|
||||
import ScoreSaberPlayer from "@/common/model/player/impl/scoresaber-player";
|
||||
import { scoresaberService } from "@/common/service/impl/scoresaber";
|
||||
|
||||
const REFRESH_INTERVAL = 5 * 60 * 1000; // 5 minutes
|
||||
const PLAYER_NAME_MAX_LENGTH = 18;
|
||||
|
||||
type MiniProps = {
|
||||
@ -91,7 +90,6 @@ export default function Mini({ type, player }: MiniProps) {
|
||||
|
||||
return players;
|
||||
},
|
||||
refetchInterval: REFRESH_INTERVAL,
|
||||
});
|
||||
|
||||
let players = data; // So we can update it later
|
||||
|
Reference in New Issue
Block a user