diff --git a/apps/web/process/configurator/reactions/values.ts b/apps/web/process/configurator/reactions/values.ts index 8f5cf3e..3aebd43 100644 --- a/apps/web/process/configurator/reactions/values.ts +++ b/apps/web/process/configurator/reactions/values.ts @@ -30,13 +30,13 @@ export default function valuesReactions({ store, apolloClient, trpcClient }: Pro 'partialVAT', ]), async (values) => { + $calculation.element('selectTarif').resetOptions().resetValue(); + const { evo_tarif } = await trpcClient.getTarif.query(values); if (evo_tarif) { $calculation.element('selectTarif').setOptions(normalizeOptions([evo_tarif])); $calculation.element('selectTarif').setValue(evo_tarif.evo_tarifid); - } else { - $calculation.element('selectTarif').resetOptions(); } }, {