mirror of
https://github.com/duckietm/Nitro-V3.git
synced 2026-06-20 15:36:18 +00:00
Merge pull request #30 from simoleo89/fix/crackable-hits-undefined
Fix crackableHits undefined TypeError in InfoStandWidgetFurniView
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