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
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ export const InfoStandWidgetPetView: FC<InfoStandWidgetPetViewProps> = 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<InfoStandWidgetPetViewProps> = 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