Skip to content

Commit

Permalink
Rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
GabeDiniz committed Mar 27, 2024
1 parent fd690a8 commit 4880e0e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/pages/Landing.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ const Landing: React.FC = () => {
const [componentLoaded, setComponentLoaded] = useState(false);

useEffect(() => {
const image = new Image();
image.src = HeroAboutDesktop;
image.onload = () => setComponentLoaded(true);
const desktopImage = new Image();

desktopImage.src = HeroAboutDesktop;
desktopImage.onload = () => setComponentLoaded(true);
}, []);

useEffect(() => {
Expand Down

0 comments on commit 4880e0e

Please sign in to comment.