Commit fc8963d6 authored by Chunchi Che's avatar Chunchi Che

do not return to home when duel is end

parent 89dd642c
Pipeline #22081 passed with stages
in 15 minutes and 20 seconds
import { notification } from "antd";
import React, { useEffect } from "react";
import { useNavigate } from "react-router-dom";
import { useSnapshot } from "valtio";
import { fetchStrings, ygopro } from "@/api";
......@@ -25,7 +24,6 @@ export const HintNotification = () => {
const waiting = snap.waiting;
const result = snap.result;
const navigate = useNavigate();
const [api, contextHolder] = notification.useNotification({
maxCount: NeosConfig.ui.hint.maxCount,
});
......@@ -79,9 +77,6 @@ export const HintNotification = () => {
message,
placement: "bottom",
style: style,
onClose() {
navigate("/");
},
});
}
}, [result]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment