Ajax Comment Upvotes – Votes don’t always register

Please try this and inform me what you got in the console. and sure console.log the type

add_action( 'wp_ajax_comment_meta_update_vote', 'comment_meta_update_vote' );

function comment_meta_update_vote( ) {
check_ajax_referer( 'upvote_nonce' );

$comment_id = $_POST['comment_id'];
$vote_score = get_comment_meta($comment_id , 'vote', true);
$vote_score++;
$updated = update_comment_meta($comment_id , 'vote', $vote_score );

  if($updated){
    $msg = 'success';
  }else{
    $msg = 'failed';
  }
  $response = array('type' => $msg);
  wp_json_encode( $response );

die(); 
}