-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
psp-6864 missing fields required message. #3492
Conversation
✅ No secrets were detected in the code. |
Codecov Report
@@ Coverage Diff @@
## dev #3492 +/- ##
==========================================
+ Coverage 71.32% 75.05% +3.73%
==========================================
Files 1343 881 -462
Lines 31681 17673 -14008
Branches 5960 4957 -1003
==========================================
- Hits 22596 13265 -9331
+ Misses 8840 4408 -4432
+ Partials 245 0 -245
Flags with carried forward coverage won't be shown. Click here to find out more.
|
await formikRef.current?.submitForm(); | ||
setIsValid(formikRef.current?.isValid ?? false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see other places doing:
var result = await (formikRef.current?.submitForm() ?? Promise.resolve());
setIsValid(...)
why not use the same pattern here (awaiting the promise)?
@@ -117,6 +118,7 @@ export const ResearchContainer: React.FunctionComponent< | |||
if (formikRef !== undefined) { | |||
formikRef.current?.setSubmitting(true); | |||
formikRef.current?.submitForm(); | |||
setIsValid(formikRef.current?.isValid || false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other code awaits the result of submitForm()
but this one doesn't. Would it make sense to apply the same pattern here?
a1744ee
to
bc3f1f5
Compare
bc3f1f5
to
00a4f72
Compare
✅ No secrets were detected in the code. |
1 similar comment
✅ No secrets were detected in the code. |
No description provided.