Fixe type

pull/2116/head
Jérémy Rialland 2022-04-25 12:30:10 +02:00 committed by Jérémy Rialland
parent 569eca1174
commit 86319d26e0
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ import { SmallBody } from '@/design-system/typography/paragraphs'
import { targetUnitSelector } from '@/selectors/simulationSelectors'
import { Grid } from '@mui/material'
import { DottedName } from 'modele-social'
import { formatValue } from 'publicodes'
import { formatValue, PublicodesExpression } from 'publicodes'
import React, { useCallback, useState } from 'react'
import { useDispatch, useSelector } from 'react-redux'
import styled from 'styled-components'
@ -48,7 +48,7 @@ export function SimulationGoal({
const initialRender = useInitialRender()
const [isFocused, setFocused] = useState(false)
const onChange = useCallback(
(x) => {
(x?: PublicodesExpression) => {
dispatch(updateSituation(dottedName, x))
onUpdateSituation?.(dottedName, x)
},