Fix button Buy food (#101)

This commit is contained in:
object 2022-12-22 21:59:41 +01:00 committed by GitHub
parent 1208720233
commit 6531e629bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -28,7 +28,7 @@ export const InfoStandWidgetPetView: FC<InfoStandWidgetPetViewProps> = props =>
useEffect(() => useEffect(() =>
{ {
if((avatarInfo.petType !== PetType.MONSTERPLANT) || avatarInfo.dead) return; if((avatarInfo.petType !== PetType.MONSTERPLANT) || avatarInfo.dead) return;
const interval = setInterval(() => const interval = setInterval(() =>
{ {
setRemainingGrowTime(prevValue => (prevValue - 1)); setRemainingGrowTime(prevValue => (prevValue - 1));
@ -54,7 +54,7 @@ export const InfoStandWidgetPetView: FC<InfoStandWidgetPetViewProps> = props =>
if((petRespectRemaining - 1) >= 1) hideMenu = false; if((petRespectRemaining - 1) >= 1) hideMenu = false;
break; break;
case 'buyfood': case 'buyfood':
CreateLinkEvent('catalog/open/' + GetConfiguration('catalog.links')['pets.buy_saddle']); CreateLinkEvent('catalog/open/' + GetConfiguration('catalog.links')['pets.buy_food']);
break; break;
case 'train': case 'train':
// not coded // not coded