Merge pull request #1311 from robintown/error-view-rageshake

Add a rageshake button to the generic error view
This commit is contained in:
Robin 2023-08-09 09:31:58 -04:00 committed by GitHub
commit 44dd860cb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ export function ErrorView({ error }: ErrorViewProps) {
? error.translatedMessage
: error.message}
</p>
<RageshakeButton description={`***Error View***: ${error.message}`} />
{location.pathname === "/" ? (
<Button
size="lg"

View File

@ -54,7 +54,7 @@ export function useSubmitRageshake(): {
// The value of the context is the whole tuple returned from setState,
// so we just want the current state.
const [inspectorState] = useContext(InspectorContext);
const [inspectorState] = useContext(InspectorContext) ?? [];
const [{ sending, sent, error }, setState] = useState<{
sending: boolean;