import { haveSEUpdateRelativeDates } from './haveSEUpdateRelativeDates' ; import { changeFullListItem } from './changeFullListItem' ; import { changeMiniListItem } from './changeMiniListItem' ; export const addResultsToQuestionList = ( startedsToFixByQuestionId , apiQuestionsByQuestionId , questionsContainerIsMiniList ) => { for ( const [ questionId , started ] of startedsToFixByQuestionId . entries ( ) ) { const apiQuestion = apiQuestionsByQuestionId [ questionId ] ; if ( ! apiQuestion ) { continue ; } if ( questionsContainerIsMiniList ) { changeMiniListItem ( started , apiQuestion ) ; } else { changeFullListItem ( started , apiQuestion ) ; } } haveSEUpdateRelativeDates ( ) ; } ;