An excellent book on the 1980 election is Rendevous With Destiny by Craig Shirley. Carter did have a slight lead in some polls up until about 10 days before the election when Carter and Reagan debated at Reagan won the debate clearly with the american people even if much of the media was pretty convinced that Carter had won.
Rendezvous