ASU / asu-unity-stack

ASU Unity Design System
https://unity.web.asu.edu/
Other
13 stars 8 forks source link

fix(app-rfi): fix false error display on studentstatus #1312

Closed davidornelas11 closed 4 months ago

davidornelas11 commented 4 months ago

fix false error display on studentstatus field on submit.

Description

The problem was that the payload was pointing to the same value in memory that got passed in and it was causing Formik to reset the state when the value was changed in the submission helpers. Creating a deep clone instead of a shallow clone fixes this