Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
AAGaming00 committed Aug 21, 2024
1 parent 7c9b68c commit 927f912
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/src/utils/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export function getLikelyErrorSourceFromValveError(error: ValveError): ErrorSour

export function getLikelyErrorSourceFromValveReactError(error: ValveReactErrorInfo): ErrorSource {
// get the first 10 lines of the componentStack to avoid matching against the decky router wrapper for any route errors deeper in the tree
return getLikelyErrorSource(error?.error?.stack + '\n' + error.info.componentStack?.split("\n").slice(0, 8).join("\n"));
return getLikelyErrorSource(
error?.error?.stack + '\n' + error.info.componentStack?.split('\n').slice(0, 8).join('\n'),
);
}

export function getLikelyErrorSource(error?: string): ErrorSource {
Expand Down

0 comments on commit 927f912

Please sign in to comment.