diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index a32e3d1..e69de29 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +0,0 @@ -# Newcomers will be inducted -Any PR's are welcomed not all will be accepted immediately at least until we get [GOVERNANCE.md](/GOVERNANCE.md) defined clearly in [#3](https://github.com/FauxJira/FauxJira/issues/3). - -However, as soon as you contribute a PR I will try and induct you as I would love to recruit people as this won't be my main focus so I'll just meta manage long term. diff --git a/README.md b/README.md index 3aa2010..4d42eb5 100644 --- a/README.md +++ b/README.md @@ -64,19 +64,23 @@ Not all components have properly defined [aria attributes](https://developer.moz Both Client and API are currently tested through [end-to-end Cypress tests](https://github.com/oldboyxx/jira_clone/tree/master/client/cypress/integration). That's good enough for a relatively simple application such as this, even if it was a real product. However, as the app grows in complexity, it might be wise to start writing additional unit/integration tests. -### Author: Ivor Reic ✍️ +## Author: Ivor Reic ✍️ - Website: https://getivor.com/ - Skype handle: ivor.reic 💬 -### License +## Contributing + +I will not be accepting PR's on this repository. Feel free to fork and maintain your own version. + +## License [MIT](https://opensource.org/licenses/MIT)
-

+

Visit the live app | View client | View API -

+ diff --git a/client/src/Auth/Authenticate.jsx b/client/src/Auth/Authenticate.jsx index cf22672..67ff7d0 100644 --- a/client/src/Auth/Authenticate.jsx +++ b/client/src/Auth/Authenticate.jsx @@ -10,7 +10,8 @@ const Authenticate = () => { const history = useHistory(); useEffect(() => { - const createGuestAccount = async () => { + if (!getStoredAuthToken()) { + const createGuestAccount = async () => { try { const { authToken } = await api.post('/authentication/guest'); storeAuthToken(authToken); @@ -19,8 +20,6 @@ const Authenticate = () => { toast.error(error); } }; - - if (!getStoredAuthToken()) { createGuestAccount(); } }, [history]);