Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlaa committed Sep 2, 2024
2 parents 6d26f00 + 6ad4996 commit 16130d7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,22 +164,21 @@ export default function ActionCard({
/>

{hasRemainingQuestions && (
<NotificationBubble
onClick={() => setFocusedAction(dottedName)}
title={remainingQuestionsText}
number={nbRemainingQuestions}
/>
)}

{hasRemainingQuestions && (
<button
className="cursor-pointer text-sm text-primary-700"
onClick={() => {
trackEvent(actionsClickAdditionalQuestion(dottedName))
setFocusedAction(dottedName)
}}>
{remainingQuestionsText}
</button>
<>
<NotificationBubble
onClick={() => setFocusedAction(dottedName)}
title={remainingQuestionsText}
number={nbRemainingQuestions}
/>
<button
className="cursor-pointer text-sm text-primary-700"
onClick={() => {
trackEvent(actionsClickAdditionalQuestion(dottedName))
setFocusedAction(dottedName)
}}>
{remainingQuestionsText}
</button>
</>
)}
</div>
<div className="self-bottom flex w-full justify-between px-2">
Expand Down
8 changes: 8 additions & 0 deletions src/helpers/actions/filterRelevantMissingVariables.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ const filteredDottedNames: DottedName[] = [
'métrique',
'déforestation',
'logement . électricité verte',
'logement . chauffage . électricité',
'futureco-data . transport . ferry . distance aller . orthodromique',
'futureco-data . transport . ferry . durée du voyage',
'futureco-data . transport . ferry . vitesse en kmh',
'futureco-data . transport . ferry . cabine',
'futureco-data . transport . ferry . groupe',
'futureco-data . transport . ferry . consommation de services',
'futureco-data . transport . ferry . voiture',
]

export const filterRelevantMissingVariables = ({
Expand Down

0 comments on commit 16130d7

Please sign in to comment.