mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-22 22:30:52 +01:00
Fix button Buy food (#101)
This commit is contained in:
parent
1208720233
commit
6531e629bd
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user