Skip to content

Commit

Permalink
Merge branch 'development/user-profile' of https://github.com/dev-lau…
Browse files Browse the repository at this point in the history
…nchers/dev-launchers-platform into 1813-tailwind-styling
  • Loading branch information
tiwarineelu59 committed Jun 26, 2024
2 parents d29e6c1 + 6433a57 commit f54f3e0
Show file tree
Hide file tree
Showing 84 changed files with 2,328 additions and 2,105 deletions.
568 changes: 284 additions & 284 deletions apps/app/styles/globals.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,18 @@ function SubmissionForm() {
['primary', 'close'],
);

const getDBInvolveLevel = (involveString) => {
if (involveString.includes("and also believe")) {
return "highly";
} else if (involveString.includes("to help with workshopping")) {
return "medium";
}/* else if (involveString.includes("")) {
return "minimum";
}*/ else {
return "none"
}
};

const initialValues = {
ideaName: '',
tagline: '',
Expand Down Expand Up @@ -63,8 +75,11 @@ function SubmissionForm() {
values['features'] = values['features'].trim();
values['experience'] = values['experience'].trim();
values['extraInfo'] = values['extraInfo'].trim();
values['involveLevel'] = values['involveLevel'].trim()
setSending(true);
const involveValueForDataBase = getDBInvolveLevel(
values['involveLevel'].trim());

values['involveLevel'] = involveValueForDataBase;
setSending(true);

try {
const data = cleanData(await agent.Ideas.post(values));
Expand Down
Loading

0 comments on commit f54f3e0

Please sign in to comment.