Skip to content

Commit

Permalink
Merge pull request #1999 from prefeiturasp/fix/106430-creditos-select…
Browse files Browse the repository at this point in the history
…-conta

fix(106430): Erro ao digitar data em crédito tipo repasse
  • Loading branch information
alcfernandes authored Oct 17, 2023
2 parents 340c6b0 + 08f9e1e commit 79fdc3d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ export const ReceitaFormFormik = ({
id="data"
value={values.data}
onChange={(name, value) => {
setFieldValue('conta_associacao', '');
if (!repasses || repasses.length === 0) {
// Como o repasse seta a conta automaticamente ela não pode ser apagada.
setFieldValue('conta_associacao', '');
}
setFieldValue(name, value);
}}
onCalendarClose={async () => {
Expand Down

0 comments on commit 79fdc3d

Please sign in to comment.