From ac07257e1526a6fd658a67427555dc6951309f9e Mon Sep 17 00:00:00 2001 From: Renard Date: Mon, 9 Mar 2020 19:24:40 -0300 Subject: Historial de canciones en orden inverso --- src/App.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') diff --git a/src/App.js b/src/App.js index 50177ed..78c8146 100644 --- a/src/App.js +++ b/src/App.js @@ -63,12 +63,8 @@ class App extends Component { addToHistory(song) { this.setState(prevState => ({ - history: [...prevState.history, song] + history: [song, ...prevState.history] })); - let historyContainer = document.getElementById("historyContainer"); - if (historyContainer != null) { - historyContainer.scrollTop = historyContainer.scrollHeight; - } } compareSongs() { -- cgit v1.2.1-18-gbd029