File tree Expand file tree Collapse file tree 5 files changed +8
-8
lines changed
Expand file tree Collapse file tree 5 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ async function getDataAndInit(): Promise<boolean> {
6969 ) ;
7070 }
7171
72- Sentry . setUser ( snapshot . uid , snapshot . name ) ;
72+ void Sentry . setUser ( snapshot . uid , snapshot . name ) ;
7373 if ( snapshot . needsToChangeName ) {
7474 Notifications . addPSA (
7575 "You need to update your account name. <a class='openNameChange'>Click here</a> to change it and learn more about why." ,
@@ -155,7 +155,7 @@ export async function onAuthStateChanged(
155155 }
156156
157157 if ( ! authInitialisedAndConnected || ! user ) {
158- Sentry . clearUser ( ) ;
158+ void Sentry . clearUser ( ) ;
159159 }
160160
161161 let keyframes = [
Original file line number Diff line number Diff line change 11import * as Notifications from "./elements/notifications" ;
22import { ZodSchema , z } from "zod" ;
3- import { captureException } from "./sentry" ;
3+ import * as Sentry from "./sentry" ;
44
55// function isConfigKeyValid(name: string): boolean {
66// if (name === null || name === undefined || name === "") return false;
@@ -21,7 +21,7 @@ export function invalid(
2121
2222 Notifications . add ( message , - 1 ) ;
2323 console . error ( message ) ;
24- captureException ( new Error ( message ) ) ;
24+ void Sentry . captureException ( new Error ( message ) ) ;
2525}
2626
2727export function isConfigValueValid < T > (
Original file line number Diff line number Diff line change @@ -37,6 +37,6 @@ export function activateWhatsAccepted(): void {
3737 activateAnalytics ( ) ;
3838 }
3939 if ( accepted ?. sentry ) {
40- activateSentry ( ) ;
40+ void activateSentry ( ) ;
4141 }
4242}
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ export async function fillPresetButtons(): Promise<void> {
128128 const msg =
129129 "Failed to fill preset theme buttons: favThemes or allThemes element not found" ;
130130 Notifications . add ( msg , - 1 ) ;
131- captureException ( new Error ( msg ) ) ;
131+ void captureException ( new Error ( msg ) ) ;
132132 console . error ( msg , { favThemesEl, themesEl } ) ;
133133 return ;
134134 }
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ import * as CompositionState from "../states/composition";
7676import { SnapshotResult } from "../constants/default-snapshot" ;
7777import { WordGenError } from "../utils/word-gen-error" ;
7878import { tryCatch } from "@monkeytype/util/trycatch" ;
79- import { captureException } from "../sentry" ;
79+ import * as Sentry from "../sentry" ;
8080import * as Loader from "../elements/loader" ;
8181import * as TestInitFailed from "../elements/test-init-failed" ;
8282import { canQuickRestart } from "../utils/quick-restart" ;
@@ -410,7 +410,7 @@ export async function init(): Promise<void | null> {
410410 testReinitCount ++ ;
411411 if ( testReinitCount > 3 ) {
412412 if ( lastInitError ) {
413- captureException ( lastInitError ) ;
413+ void Sentry . captureException ( lastInitError ) ;
414414 TestInitFailed . showError (
415415 `${ lastInitError . name } : ${ lastInitError . message } `
416416 ) ;
You can’t perform that action at this time.
0 commit comments