Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Flurin authored and Flurin committed Jan 29, 2024
1 parent 79df38d commit 15222fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soemi-woeb/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function App() {
const [planet, setPlanet] = useState(null)

const handleRestCall = async () => {
$("body").css("cursor", "progress");
document.body.style.cursor = 'wait';
try {
const temp = await getTemp();
const imgRes = await fetch(`http://sömi-weather.ch/api/get-the-star-wars-planets-mapping-for-the-current-temperature-completely-and-utterly-accurate?temp=${temp}`)
Expand All @@ -17,7 +17,7 @@ function App() {
} catch (error) {
console.log("error")
}finally{
$("body").css("cursor", "default");
document.body.style.cursor = 'default'
}
};

Expand Down

0 comments on commit 15222fd

Please sign in to comment.