fix(plugin): guard non-numeric appId, improve 404 error handling
This commit is contained in:
@@ -112,7 +112,7 @@ export default function LibraryAppPanel({ appId, title, hardwareSlug, baseUrl }:
|
||||
<PanelSection title="DeckyVault">
|
||||
<PanelSectionRow>
|
||||
<div className={staticClasses.Text} style={{ fontSize: "12px", padding: "6px 0", opacity: 0.7, color: "#e74c3c" }}>
|
||||
<FaTimes /> Could not load DeckyVault data. Please try again later.
|
||||
<FaTimes /> Could not load DeckyVault data: {fetchError}
|
||||
</div>
|
||||
</PanelSectionRow>
|
||||
</PanelSection>
|
||||
|
||||
@@ -54,6 +54,8 @@ export function registerLibraryAppPatch() {
|
||||
if (!child) return null
|
||||
const overview = child.props.children.props.overview
|
||||
if (!overview || !isSteamGameType(overview.app_type)) return null
|
||||
// Only inject for valid numeric app IDs
|
||||
if (typeof overview.appid !== 'number' || overview.appid <= 0) return null
|
||||
return child.props.children
|
||||
},
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user