aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLibravatar Renard 2020-03-09 19:24:40 -0300
committerLibravatar Renard 2020-03-09 19:24:40 -0300
commitac07257e1526a6fd658a67427555dc6951309f9e (patch)
tree245cd1c1c1da06ef96139fa39e2199d3afd7cc4d /src
parent4adaf01b3cdc86d560f9c5786a1b66690b757179 (diff)
downloadbairadio-app-ac07257e1526a6fd658a67427555dc6951309f9e.tar.gz
bairadio-app-ac07257e1526a6fd658a67427555dc6951309f9e.tar.xz
bairadio-app-ac07257e1526a6fd658a67427555dc6951309f9e.zip
Historial de canciones en orden inverso
Diffstat (limited to 'src')
-rw-r--r--src/App.js6
1 files changed, 1 insertions, 5 deletions
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() {