From 9bb58d8fc60dc29b7185fc08bd429a1e933e201d Mon Sep 17 00:00:00 2001 From: Thibaut Boustany Date: Tue, 12 Jun 2018 18:18:45 +0200 Subject: [PATCH] Fix load state never set to true --- src/components/modals/ReleaseNotes.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/modals/ReleaseNotes.js b/src/components/modals/ReleaseNotes.js index 62a55912..f88c54db 100644 --- a/src/components/modals/ReleaseNotes.js +++ b/src/components/modals/ReleaseNotes.js @@ -156,6 +156,10 @@ class ReleaseNotes extends PureComponent { fetchNotes = version => { if (!this.state.loading) { + this.setState({ + loading: true + }) + axios .get(`https://api.github.com/repos/LedgerHQ/ledger-live-desktop/releases/tags/v${version}`) .then(response => {