Unverified Commit 92e654ae authored by Zhou (Link)  Fang's avatar Zhou (Link) Fang Committed by GitHub
Browse files

Updated the behaviour for form chooser (#252)

parent c630bd02
......@@ -72,7 +72,7 @@ const FormChooser = ({
})
.then((data) => {
console.log('existing forms: ', data);
if (data.length > 0) {
if (data.length > 0 && data[0].state !== 'SUBMITTED') {
setHasExistingForm(data[0]?.id);
setCurrentFormId(data[0]?.id);
} else {
......
Markdown is supported
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