Remove time from Signup type

This commit is contained in:
Aarni Halinen
2019-11-10 21:43:41 +02:00
parent 916a834f13
commit 3d49f0ec64
2 changed files with 0 additions and 3 deletions
-1
View File
@@ -6,7 +6,6 @@ import { Question } from "../components/SignupQuestionsWidget";
export interface Signup {
id?: number;
time: string;
signupForm_id: number;
answer: string;
}
-2
View File
@@ -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,