From 5854cf834abbed87f52d486d3e2a58e102e10d4b Mon Sep 17 00:00:00 2001 From: Kashargul <144968721+Kashargul@users.noreply.github.com> Date: Mon, 4 Nov 2024 22:45:30 +0100 Subject: [PATCH] fix the vorepanel (#16565) --- .../tgui/interfaces/VorePanel/VoreInsidePanel.tsx | 8 ++++---- tgui/packages/tgui/interfaces/VorePanel/index.tsx | 2 +- tgui/packages/tgui/interfaces/VorePanel/types.ts | 12 ++++++------ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/tgui/packages/tgui/interfaces/VorePanel/VoreInsidePanel.tsx b/tgui/packages/tgui/interfaces/VorePanel/VoreInsidePanel.tsx index b5bba05f06e..e3d68dda7cb 100644 --- a/tgui/packages/tgui/interfaces/VorePanel/VoreInsidePanel.tsx +++ b/tgui/packages/tgui/interfaces/VorePanel/VoreInsidePanel.tsx @@ -36,15 +36,15 @@ export const VoreInsidePanel = (props: { and you are   - - {digestModeToPreyMode[belly_mode]} + + {digestModeToPreyMode[belly_mode!]}   {desc} - {(contents.length && ( + {(contents!.length && ( diff --git a/tgui/packages/tgui/interfaces/VorePanel/index.tsx b/tgui/packages/tgui/interfaces/VorePanel/index.tsx index 9cf7a76a6b2..e0b865d1720 100644 --- a/tgui/packages/tgui/interfaces/VorePanel/index.tsx +++ b/tgui/packages/tgui/interfaces/VorePanel/index.tsx @@ -66,7 +66,7 @@ export const VorePanel = (props) => { )) || ''} - 500 ? '30%' : '20%'}> + 500 ? '30%' : '20%'}> diff --git a/tgui/packages/tgui/interfaces/VorePanel/types.ts b/tgui/packages/tgui/interfaces/VorePanel/types.ts index 85cae957e56..a0c6dd31438 100644 --- a/tgui/packages/tgui/interfaces/VorePanel/types.ts +++ b/tgui/packages/tgui/interfaces/VorePanel/types.ts @@ -25,12 +25,12 @@ export type hostMob = { export type insideData = { absorbed: BooleanLike; - belly_name: string; - belly_mode: string; - desc: string; - pred: string; - ref: string; - contents: contentData[]; + belly_name?: string; + belly_mode?: string; + desc?: string; + pred?: string; + ref?: string; + contents?: contentData[]; }; export type contentData = {