fix!
This commit is contained in:
@ -36,7 +36,7 @@ export const ProtectedRoute: Component<ParentProps> = (props) => {
|
|||||||
const isValid = isTokenValid();
|
const isValid = isTokenValid();
|
||||||
|
|
||||||
if (isValid) {
|
if (isValid) {
|
||||||
const token = localStorage.getItem("access");
|
const token = localStorage.getItem("refresh");
|
||||||
if (token == null) {
|
if (token == null) {
|
||||||
throw new Error("unreachable");
|
throw new Error("unreachable");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user