Skip to content

Commit

Permalink
fix: state issue with relationship sheet
Browse files Browse the repository at this point in the history
  • Loading branch information
clxmente committed Oct 26, 2024
1 parent 53d9d36 commit ed98a53
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/components/sheets/villager-sheet.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ export const VillagerSheet = ({ open, setIsOpen, villager }: Props) => {
!activePlayer.social ||
!activePlayer.social.relationships ||
!activePlayer.social.relationships[villager.name]
)
) {
setHearts("0");
return;
}

setHearts(
Math.floor(
Expand Down

0 comments on commit ed98a53

Please sign in to comment.