mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 07:26:19 +00:00
🐛 Fix crackableHits undefined TypeError in InfoStandWidgetFurniView
Co-Authored-By: medievalshell <medievalshell@users.noreply.github.com>
This commit is contained in:
@@ -220,8 +220,8 @@ export const InfoStandWidgetFurniView: FC<InfoStandWidgetFurniViewProps> = props
|
|||||||
|
|
||||||
canUse = true;
|
canUse = true;
|
||||||
isCrackable = true;
|
isCrackable = true;
|
||||||
crackableHits = stuffData.hits;
|
crackableHits = stuffData?.hits ?? 0;
|
||||||
crackableTarget = stuffData.target;
|
crackableTarget = stuffData?.target ?? 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
else if(avatarInfo.extraParam === RoomWidgetEnumItemExtradataParameter.JUKEBOX)
|
else if(avatarInfo.extraParam === RoomWidgetEnumItemExtradataParameter.JUKEBOX)
|
||||||
@@ -527,7 +527,7 @@ export const InfoStandWidgetFurniView: FC<InfoStandWidgetFurniViewProps> = props
|
|||||||
{ isCrackable &&
|
{ isCrackable &&
|
||||||
<>
|
<>
|
||||||
<hr className="m-0 bg-[#0003] border-0 opacity-[.5] h-px" />
|
<hr className="m-0 bg-[#0003] border-0 opacity-[.5] h-px" />
|
||||||
<Text small wrap variant="white">{ LocalizeText('infostand.crackable_furni.hits_remaining', [ 'hits', 'target' ], [ crackableHits.toString(), crackableTarget.toString() ]) }</Text>
|
<Text small wrap variant="white">{ LocalizeText('infostand.crackable_furni.hits_remaining', [ 'hits', 'target' ], [ (crackableHits ?? 0).toString(), (crackableTarget ?? 0).toString() ]) }</Text>
|
||||||
</> }
|
</> }
|
||||||
{ avatarInfo.groupId > 0 &&
|
{ avatarInfo.groupId > 0 &&
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user