Remove time from Signup type
This commit is contained in:
@@ -6,7 +6,6 @@ import { Question } from "../components/SignupQuestionsWidget";
|
||||
|
||||
export interface Signup {
|
||||
id?: number;
|
||||
time: string;
|
||||
signupForm_id: number;
|
||||
answer: string;
|
||||
}
|
||||
|
||||
@@ -151,7 +151,6 @@ class SignUpPage extends React.Component<SignUpPageProps, SignUpPageState> {
|
||||
|
||||
try {
|
||||
const payload: Signup = {
|
||||
time: new Date().toISOString(),
|
||||
signupForm_id: signUpForm.id,
|
||||
answer: JSON.stringify(data.formData),
|
||||
};
|
||||
@@ -165,7 +164,6 @@ class SignUpPage extends React.Component<SignUpPageProps, SignUpPageState> {
|
||||
});
|
||||
}
|
||||
else {
|
||||
debugger;
|
||||
// const resp = await updateSignup(payload);
|
||||
// this.setState({
|
||||
// formData: resp,
|
||||
|
||||
Reference in New Issue
Block a user