Commit 64a58904 authored by devendra's avatar devendra
Browse files

Feat: submit districtName of institute while submitting form

1 merge request!9Show institution district
Showing with 6 additions and 0 deletions
+6 -0
......@@ -20,6 +20,7 @@ import Helper from "../../helpers/auth";
import { StatusBarLarge } from "../status-bar";
import { CardThree } from "../cards";
import { TextAreaField } from "../form-elements";
import Auth from "../../helpers/auth";
// import { BtnTwo } from "../buttons";
// const $ = window.$;
class FormViewer extends Component {
......@@ -549,6 +550,11 @@ class FormViewer extends Component {
}),
};
const instituteCourses = Auth.get('instituteCourses');
if(instituteCourses.length > 0) {
formDetails['districtName'] = instituteCourses[0].districtName;
}
// formDetails = JSON.stringify(formDetails);
// console.log(JSON.parse(formDetails));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment