Contrary to Johnson's belief that Grant had agreed to remain in office, when the Senate voted and reinstated Stanton in January 1868, Grant immediately resigned, before the president had an opportunity to appoint a replacement.