diff --git a/pages/_app.tsx b/pages/_app.tsx index 8c66b27a186..48333ee72b1 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -28,10 +28,8 @@ import "../src/test-prep"; import "../src/base.css"; if (typeof window !== "undefined") { - // @ts-expect-error Promise.prototype.finally = function (callback) { - debugger; - this.then( + return this.then( result => { callback && callback(); return result;