refactor: no need for else if true condition returns somrthing

This commit is contained in:
Chris Benseler 2021-04-17 17:13:42 -03:00
parent 501f229d0e
commit cee212c438
2 changed files with 4 additions and 3509 deletions

3505
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -9,10 +9,10 @@ export default function Home(props) {
if (loading) { if (loading) {
return <p className="text-gray-400">Loading...</p>; return <p className="text-gray-400">Loading...</p>;
} else { }
if (!session) { if (!session) {
window.location.href = "/auth/login"; window.location.href = "/auth/login";
} return;
} }
return( return(