Skip to content

Commit

Permalink
mobile: fix stacktrace formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ammarahm-ed committed Jul 8, 2024
1 parent 909d8c3 commit 3f1614a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
1 change: 0 additions & 1 deletion apps/mobile/app/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,6 @@ const App = () => {
});
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);

return (
<View
style={{
Expand Down
11 changes: 4 additions & 7 deletions apps/mobile/app/components/exception-handler/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,7 @@ import { SafeAreaProvider, SafeAreaView } from "react-native-safe-area-context";
import { Dialog } from "../dialog";
import { Issue } from "../sheets/github/issue";

const error = (
stack: string,
component: string
) => `Please let us know what happened. What steps we can take to reproduce the issue here.
const error = (stack: string, component: string) => `
_______________________________
Stacktrace: In ${component}::${stack}`;
Expand All @@ -39,9 +36,9 @@ class ExceptionHandler extends React.Component<{
error: Error | null;
hasError: boolean;
} = {
hasError: false,
error: null
};
hasError: false,
error: null
};
static getDerivedStateFromError(error: Error) {
return { hasError: true, error: error };
}
Expand Down
5 changes: 1 addition & 4 deletions apps/mobile/app/components/sheets/migrate/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ import { ProgressBarComponent } from "../../ui/svg/lazy";
import Paragraph from "../../ui/typography/paragraph";
import { Issue } from "../github/issue";

export const makeError = (
stack: string,
component: string
) => `Please let us know what happened. What steps we can take to reproduce the issue here.
export const makeError = (stack: string, component: string) => `
_______________________________
Stacktrace: In ${component}::${stack}`;
Expand Down

0 comments on commit 3f1614a

Please sign in to comment.