diff --git a/src/components/Authentication/Signup/SignUp.js b/src/components/Authentication/Signup/SignUp.js
index 4feadd7..4375640 100644
--- a/src/components/Authentication/Signup/SignUp.js
+++ b/src/components/Authentication/Signup/SignUp.js
@@ -23,6 +23,7 @@ import {
import { signup } from '../../../config/content';
import REGISTER from '../../../graphql/mutation/register';
import { toErrorMap } from '../../../utils/toErrorMap';
+import { Error, Loader } from '../../marginals';
const FormSignup = () => {
const [register, { loading, error }] = useMutation(REGISTER);
@@ -99,6 +100,13 @@ const FormSignup = () => {
history.push('/journal');
}
};
+ // Loading and Error component
+ if (loading) {
+ return ;
+ }
+ if (error) {
+ return ;
+ }
return (