Merge pull request #97 from quantified-uncertainty/fix-metaculus-validation
Fix metaculus validation bug
This commit is contained in:
		
						commit
						8c91993f78
					
				| 
						 | 
					@ -64,6 +64,7 @@ const predictableProps = {
 | 
				
			||||||
        additionalProperties: true,
 | 
					        additionalProperties: true,
 | 
				
			||||||
      },
 | 
					      },
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    nullable: true,
 | 
				
			||||||
    additionalProperties: true,
 | 
					    additionalProperties: true,
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
} as const;
 | 
					} as const;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -36,7 +36,7 @@ async function apiQuestionToFetchedQuestions(apiQuestion: ApiQuestion): Promise<
 | 
				
			||||||
      const isBinary = q.possibilities.type === "binary";
 | 
					      const isBinary = q.possibilities.type === "binary";
 | 
				
			||||||
      let options: FetchedQuestion["options"] = [];
 | 
					      let options: FetchedQuestion["options"] = [];
 | 
				
			||||||
      if (isBinary) {
 | 
					      if (isBinary) {
 | 
				
			||||||
        const probability = q.community_prediction.full.q2;
 | 
					        const probability = q.community_prediction?.full.q2;
 | 
				
			||||||
        if (probability !== undefined) {
 | 
					        if (probability !== undefined) {
 | 
				
			||||||
          options = [
 | 
					          options = [
 | 
				
			||||||
            {
 | 
					            {
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user