このコミットが含まれているのは:
@@ -449,9 +449,12 @@ const previewAnswer = ({
|
||||
const hardFilteredPosts =
|
||||
answer === 'unknown'
|
||||
? posts
|
||||
: posts.filter (post => expectedAnswerForQuestion (question, post) === answer)
|
||||
: posts.filter (post => {
|
||||
const expected = expectedAnswerForQuestion (question, post)
|
||||
return expected === null || expected === 'unknown' || expected === answer
|
||||
})
|
||||
const nextPosts =
|
||||
answer !== 'unknown' && hardFilteredPosts.length > 0
|
||||
hardFilteredPosts.length > 0
|
||||
? hardFilteredPosts
|
||||
: posts
|
||||
const nextScores = new Map (scores)
|
||||
@@ -1061,14 +1064,16 @@ const GekanatorPage: FC = () => {
|
||||
}})
|
||||
const questionSuggestionMutation = useMutation ({
|
||||
mutationFn: saveGekanatorQuestionSuggestion,
|
||||
onSuccess: data => {
|
||||
onSuccess: async data => {
|
||||
await queryClient.refetchQueries ({ queryKey: gekanatorKeys.questions () })
|
||||
setQuestionSuggestionCount (data.count)
|
||||
setQuestionSuggestion ('')
|
||||
setQuestionSuggestionAnswer ('yes')
|
||||
}})
|
||||
const extraQuestionAnswersMutation = useMutation ({
|
||||
mutationFn: saveGekanatorExtraQuestionAnswers,
|
||||
onSuccess: () => {
|
||||
onSuccess: async () => {
|
||||
await queryClient.refetchQueries ({ queryKey: gekanatorKeys.questions () })
|
||||
setExtraQuestionState ('saved')
|
||||
setPhase ('learned')
|
||||
}})
|
||||
@@ -1544,7 +1549,12 @@ const GekanatorPage: FC = () => {
|
||||
? <>グカカカカwwwww <ruby>洗澡鹿<rt>シーザオグカ</rt></ruby>は何でもお見通し!</>
|
||||
: <>私は<ruby>洗澡鹿<rt>シーザオグカ</rt></ruby>.質問から投稿を何でも当ててみせるよ</>
|
||||
const introLoading = isLoading || acceptedQuestionsLoading
|
||||
const readyToStart = !(introLoading) && acceptedQuestionsFetched && posts.length > 0
|
||||
const readyToStart =
|
||||
!(introLoading)
|
||||
&& acceptedQuestionsFetched
|
||||
&& posts.length > 0
|
||||
&& !(error)
|
||||
&& !(acceptedQuestionsError)
|
||||
|
||||
return (
|
||||
<MainArea className="bg-yellow-50 dark:bg-red-975">
|
||||
|
||||
新しい課題から参照
ユーザをブロックする