diff --git a/src/hooks/usePlacesManager.ts b/src/hooks/usePlacesManager.ts index d91eeb8a..9d839fce 100644 --- a/src/hooks/usePlacesManager.ts +++ b/src/hooks/usePlacesManager.ts @@ -28,7 +28,7 @@ export default function usePlacesManager( tracking: Record = {} ) => { if (account === null) { - accountState.select() + accountState.authorize() } else if (place) { const favoritesResponse = await Places.get().updateFavorite( id, @@ -55,7 +55,7 @@ export default function usePlacesManager( const likeDislikeHandler = async (id: string, like: boolean | null) => { if (account === null) { - accountState.select() + accountState.authorize() } else if (id) { const LikesResponse = await Places.get().updateLike(id, like) if (LikesResponse) {