Compare commits

...

1 Commits

Author SHA1 Message Date
AAGaming 054517595d fix(ErrorBoundary): use same conditions as Valve boundary for rendering
this fixes the screenshot deletion error
2025-01-03 22:53:37 -05:00
+10 -2
View File
@@ -79,9 +79,17 @@ class ErrorBoundaryHook extends Logger {
this.setState(stateClone);
return null;
}
if (this.state.error) {
// yoinked from valve error boundary
if (this.state.error && this.props.errorKey == this.state.lastErrorKey) {
const store = Object.getPrototypeOf(this)?.constructor?.sm_ErrorReportingStore || errorReportingStore;
return (
return void 0 !== this.props.fallback ? (
'function' == typeof this.props.fallback ? (
this.props.fallback(this.state.error.error)
) : (
this.props.fallback
)
) : (
<DeckyErrorBoundary
error={this.state.error}
errorKey={this.props.errorKey}