Skip to content

Commit

Permalink
πŸ› FcmToken μžλ™ μ„€μ •
Browse files Browse the repository at this point in the history
  • Loading branch information
abcxj123 committed Jul 9, 2024
1 parent f4dae48 commit b5bd75a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/Landing.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import { useNavigate } from "react-router-dom";
import { useEffect } from "react";
import { getCookie } from "../utils/cookie";
import { getCookie, setCookie } from "../utils/cookie";

const Landing = () => {
const navigate = useNavigate();

useEffect(() => {
setCookie("fcmToken", "");

const timeout = setTimeout(() => {
if (getCookie("phone")) {
navigate("/login");
Expand Down

0 comments on commit b5bd75a

Please sign in to comment.