diff --git a/src/pages/collab/index.tsx b/src/pages/collab/index.tsx
index 537d303..7dd33ef 100644
--- a/src/pages/collab/index.tsx
+++ b/src/pages/collab/index.tsx
@@ -60,40 +60,6 @@ const MatchRequestPage = () => {
};
});
- useEffect(() => {
- if (time === REQUEST_EXPIRY_TIME_SECS && curUserMatchRequest) {
- const { difficulty, category, matchType } = curUserMatchRequest;
- const sameRequest = { difficulty, category, matchType };
- deleteMatchRequest({ matchType: curUserMatchRequest.matchType });
- toast(
- (t) => (
-
-
No requests found 🫠.
-
-
-
-
-
- ),
- { duration: 60000, id: "timeout", position: "top-center" },
- );
- }
- }, [time]);
const matchUsers = useMatchUsers();
const [isCreatingMatchRequest, setIsCreatingMatchRequest] = useState(false);
@@ -177,6 +143,43 @@ const MatchRequestPage = () => {
});
// subscprtions api -- END
+
+ useEffect(() => {
+ if (time >= REQUEST_EXPIRY_TIME_SECS && curUserMatchRequest) {
+ console.log(curUserMatchRequest);
+ const { difficulty, category, matchType } = curUserMatchRequest;
+ const sameRequest = { difficulty, category, matchType };
+ deleteMatchRequest({ matchType: curUserMatchRequest.matchType });
+ toast(
+ (t) => (
+
+
No requests found 🫠.
+
+
+
+
+
+ ),
+ { duration: 60000, id: "timeout", position: "top-center" },
+ );
+ }
+ }, [time]);
+
useEffect(() => {
if (!curUserMatchRequest) {
if (intervalRef.current) {