import {Response} from "quill-marking-logic"

interface Attempt {
  response: Response
}

function getAnswerState(attempt): boolean {
  return (attempt.found && attempt.response.optimal && attempt.response.author === undefined && attempt.author === undefined)
}

export default getAnswerState;
Add a function for checking if an answer is correct.
Add a function for checking if an answer is correct.
