Closed dekiru2022 closed 2 years ago
indexQuestion.jsxの128行目に以下(★)を追加
{
questions.map((question, i) => {
★if(question.userId != cognitoId){
return (
<>
<Grid item xs={6}>
<QuestionCardResolver question={question} />
</Grid>
{(() => {
if ((questions.length === i) && ((questions.length % 2) === 1)) {
return (
<Grid item xs={6}></Grid>
)
}
})()}
</>
)
}
})
}
filterで排除する