We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ecc847 commit 9169122Copy full SHA for 9169122
1 file changed
src/components/DiscordStatus.tsx
@@ -1,5 +1,5 @@
1
import { useState, useEffect, useMemo } from "react";
2
-import { useLanyard } from "use-lanyard";
+import { useLanyardWS } from "use-lanyard";
3
import { useAutoAnimate } from "@formkit/auto-animate/react";
4
import rawGames from "../assets/gameList.json";
5
@@ -27,7 +27,7 @@ const LanyardStatus = () => {
27
const [visible, setVisible] = useState(false);
28
const [currentTime, setCurrentTime] = useState(new Date().getTime());
29
30
- const { data: status } = useLanyard("342874998375186432");
+ const status = useLanyardWS("342874998375186432");
31
32
useEffect(() => {
33
const timer = setTimeout(() => setVisible(true), 500);
0 commit comments