Skip to content

Commit f7a6dd4

Browse files
committed
minor adjustments
1 parent cc44f6c commit f7a6dd4

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

components/pages/home/sections/HeroSection.jsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,13 @@ const ProductIconWrap = styled.div`
1717
const HeroSection = () => {
1818

1919
const [data, setData] = useState(null)
20-
const [isLoading, setLoading] = useState(false)
2120
const versionNumber = data?.name ?? 'Loading...'
2221

2322
useEffect(() => {
24-
setLoading(true)
2523
fetch('https://api.github.com/repos/CodeEditApp/CodeEdit/releases/latest')
2624
.then((res) => res.json())
2725
.then((data) => {
2826
setData(data)
29-
setLoading(false)
3027
})
3128
}, [])
3229

0 commit comments

Comments
 (0)