🎨 garde en mémoire si la simulation est commencée dans la comparaison des régimes

pull/569/head
Johan Girod 2019-06-13 18:29:08 +02:00
parent d83895b6f6
commit a1af0d0a64
No known key found for this signature in database
GPG Key ID: 9E27B57DA2E8AE12
1 changed files with 3 additions and 1 deletions

View File

@ -72,7 +72,9 @@ const SchemeComparaison = ({
setSituationBranch
}: Props) => {
const [showMore, setShowMore] = useState(false)
const [conversationStarted, setConversationStarted] = useState(false)
const [conversationStarted, setConversationStarted] = useState(
!!assimiléSalarié.revenuNetAprèsImpôts.montant
)
const startConversation = useCallback(() => setConversationStarted(true), [
setConversationStarted
])