const getWinningCandidate = function getWinningCandidate({
  candidateCallStatus
}) {
  if (candidateCallStatus.winningCandidates.length === 1) {
    return candidateCallStatus.winningCandidates[0];
  }
  return undefined;
};
export default getWinningCandidate;