mirror of
https://github.com/netbymatt/ws4kp.git
synced 2026-04-17 00:59:29 -07:00
fix data sharing race condition
This commit is contained in:
@@ -58,9 +58,9 @@ const currentWeatherScroll = (() => {
|
||||
drawScreen();
|
||||
};
|
||||
|
||||
const drawScreen = () => {
|
||||
const drawScreen = async () => {
|
||||
// get the conditions
|
||||
const data = navigation.getCurrentWeather();
|
||||
const data = await navigation.getCurrentWeather();
|
||||
|
||||
// nothing to do if there's no data yet
|
||||
if (!data) return;
|
||||
|
||||
Reference in New Issue
Block a user