Skip to content

Commit

Permalink
AppContent: refactor var name to use camel case
Browse files Browse the repository at this point in the history
  • Loading branch information
AquiGorka committed Apr 24, 2019
1 parent 33e5d56 commit 1f36c5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/apps/AppCenter/InstalledApps/AppContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const AppContent = React.memo(({ repo, repoVersions, onRequestUpgrade }) => {
instances,
baseUrl,
currentVersion: {
content: { details_url },
content: { details_url: detailsUrl },
version,
},
latestVersion: {
Expand All @@ -40,15 +40,15 @@ const AppContent = React.memo(({ repo, repoVersions, onRequestUpgrade }) => {
React.useEffect(() => {
const fetchDescription = async () => {
try {
const raw = await fetch(`${baseUrl}${removeStartingSlash(details_url)}`)
const raw = await fetch(`${baseUrl}${removeStartingSlash(detailsUrl)}`)
const res = await raw.text()
setRepoDetails(res)
} catch (e) {
console.log('Error fetching decription: ', e)
}
}
fetchDescription()
}, [details_url])
}, [detailsUrl])

const canUpgrade = version !== latestVersion

Expand Down

0 comments on commit 1f36c5a

Please sign in to comment.