Update WiredConditionActorIsWearingEffectView.tsx

This commit is contained in:
object 2022-10-14 22:16:10 +00:00
parent 2fa3662860
commit d0f936f2d3

View File

@ -13,13 +13,13 @@ export const WiredConditionActorIsWearingEffectView: FC<{}> = props =>
useEffect(() => useEffect(() =>
{ {
setEffect((trigger.intData.length > 0) ? trigger.intData[0] : 0); setEffect((trigger?.stringData !== '') ? parseInt(trigger?.stringData!) : 0);
}, [ trigger ]); }, [ trigger ]);
return ( return (
<WiredConditionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } hasSpecialInput={ true } save={ save }> <WiredConditionBaseView requiresFurni={ WiredFurniType.STUFF_SELECTION_OPTION_NONE } hasSpecialInput={ true } save={ save }>
<Column gap={ 1 }> <Column gap={ 1 }>
<Text bold>{ LocalizeText('wiredfurni.params.effectid') }</Text> <Text bold>{ LocalizeText('wiredfurni.tooltip.effectid') }</Text>
<input type="number" className="form-control form-control-sm" value={ effect } onChange={ event => setEffect(parseInt(event.target.value)) } /> <input type="number" className="form-control form-control-sm" value={ effect } onChange={ event => setEffect(parseInt(event.target.value)) } />
</Column> </Column>
</WiredConditionBaseView> </WiredConditionBaseView>