Skip to content

Commit

Permalink
ログアウトしたら画面にトップに戻らないように修正
Browse files Browse the repository at this point in the history
  • Loading branch information
takayuki-ochiai committed Nov 2, 2019
1 parent e3e3bb7 commit 4f3df11
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions services/frontend/src/client/components/FirebaseApp.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React, { useEffect, useRef, useState } from "react";
import Router from "next/router";
import * as firebase from "firebase";
import "firebase/auth";
import { FirebaseContext, UserContext } from "../contexts";
import clientCredentials from "../../credentials/client";
import axios from "axios";
Expand Down Expand Up @@ -35,7 +34,7 @@ const FirebaseApp: React.FC = ({ children }) => {
return axios.post("/api/logout").then(() => {
setUser(null);
// ログアウトしたらトップ画面に戻る
Router.push("/login");
// Router.push("/login");
});
}
});
Expand Down

0 comments on commit 4f3df11

Please sign in to comment.