Skip to content

Commit

Permalink
fix: sign in with like, dislike and favorite (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
braianj authored Jan 29, 2025
1 parent b7d804e commit fd566ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hooks/usePlacesManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default function usePlacesManager(
tracking: Record<string, string> = {}
) => {
if (account === null) {
accountState.select()
accountState.authorize()
} else if (place) {
const favoritesResponse = await Places.get().updateFavorite(
id,
Expand All @@ -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) {
Expand Down

0 comments on commit fd566ac

Please sign in to comment.