Fix new Frontend 17
This commit is contained in:
@@ -180,12 +180,12 @@ export const useData = () => {
|
||||
* Get Current Weather
|
||||
* Add this method to the useData hook
|
||||
*/
|
||||
const getCurrentWeather = useCallback(async (lat: number, lon: number) => {
|
||||
const getCurrentWeather = useCallback(async (tenantId: string, lat: number, lon: number) => {
|
||||
try {
|
||||
setIsLoading(true);
|
||||
setError(null);
|
||||
|
||||
const weather = await dataService.getCurrentWeather(lat, lon);
|
||||
const weather = await dataService.getCurrentWeather(tenantId, lat, lon);
|
||||
|
||||
return weather;
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user