From 6531e629bdce999ab9912e6a774a76dde3474a79 Mon Sep 17 00:00:00 2001 From: object <110488133+oobjectt@users.noreply.github.com> Date: Thu, 22 Dec 2022 21:59:41 +0100 Subject: [PATCH] Fix button Buy food (#101) --- .../widgets/avatar-info/infostand/InfoStandWidgetPetView.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/room/widgets/avatar-info/infostand/InfoStandWidgetPetView.tsx b/src/components/room/widgets/avatar-info/infostand/InfoStandWidgetPetView.tsx index a590b785..88908d59 100644 --- a/src/components/room/widgets/avatar-info/infostand/InfoStandWidgetPetView.tsx +++ b/src/components/room/widgets/avatar-info/infostand/InfoStandWidgetPetView.tsx @@ -28,7 +28,7 @@ export const InfoStandWidgetPetView: FC = props => useEffect(() => { if((avatarInfo.petType !== PetType.MONSTERPLANT) || avatarInfo.dead) return; - + const interval = setInterval(() => { setRemainingGrowTime(prevValue => (prevValue - 1)); @@ -54,7 +54,7 @@ export const InfoStandWidgetPetView: FC = props => if((petRespectRemaining - 1) >= 1) hideMenu = false; break; case 'buyfood': - CreateLinkEvent('catalog/open/' + GetConfiguration('catalog.links')['pets.buy_saddle']); + CreateLinkEvent('catalog/open/' + GetConfiguration('catalog.links')['pets.buy_food']); break; case 'train': // not coded