axios problems

This commit is contained in:
Mikayla Dobson
2022-12-26 18:22:12 -06:00
parent ba4d72b431
commit 3831f110a3
11 changed files with 59 additions and 46 deletions

View File

@@ -4,7 +4,7 @@ import Divider from "../components/ui/Divider";
import { useAuthContext } from "../context/AuthContext";
import { ProtectPortal } from "./types";
const Protect: ProtectPortal = ({ children = <></> }) => {
const Protect: ProtectPortal = ({ children }) => {
const { user } = useAuthContext();
const navigate = useNavigate();
@@ -22,7 +22,7 @@ const Protect: ProtectPortal = ({ children = <></> }) => {
} else {
return (
<Page>
{ children }
{ children || <></> }
</Page>
)
}