Skip to content

Commit 15222fd

Browse files
FlurinFlurin
Flurin
authored and
Flurin
committed
fix
1 parent 79df38d commit 15222fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

soemi-woeb/src/App.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function App() {
66
const [planet, setPlanet] = useState(null)
77

88
const handleRestCall = async () => {
9-
$("body").css("cursor", "progress");
9+
document.body.style.cursor = 'wait';
1010
try {
1111
const temp = await getTemp();
1212
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}`)
@@ -17,7 +17,7 @@ function App() {
1717
} catch (error) {
1818
console.log("error")
1919
}finally{
20-
$("body").css("cursor", "default");
20+
document.body.style.cursor = 'default'
2121
}
2222
};
2323

0 commit comments

Comments
 (0)