From 34eb8d3a8b87f8c1492cbb48e4a97a9bb37a9bf5 Mon Sep 17 00:00:00 2001 From: Rafi Arrafif Date: Tue, 10 Feb 2026 20:36:19 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20fix:=20resolve=20linting=20error?= =?UTF-8?q?s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/(safe-mode-page)/status/page.tsx | 2 +- app/layout.tsx | 1 - features/status/index.tsx | 4 ++-- shared/helpers/backendFetch.ts | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/app/(safe-mode-page)/status/page.tsx b/app/(safe-mode-page)/status/page.tsx index c27905e..3e09f2d 100644 --- a/app/(safe-mode-page)/status/page.tsx +++ b/app/(safe-mode-page)/status/page.tsx @@ -8,7 +8,7 @@ const page = async () => { try { const data = await backendFetch("status"); console.log(data); - } catch (_) { + } catch { isDown = true; } if (!isDown) redirect("/"); diff --git a/app/layout.tsx b/app/layout.tsx index ab9cda4..f65b89c 100644 --- a/app/layout.tsx +++ b/app/layout.tsx @@ -1,7 +1,6 @@ import type { Metadata } from "next"; import { Geist, Geist_Mono, Inter } from "next/font/google"; import "./globals.css"; -import AuthSessionProviderWrapper from "@/shared/providers/AuthSession"; const inter = Inter({ subsets: ["latin"], variable: "--font-sans" }); diff --git a/features/status/index.tsx b/features/status/index.tsx index a8ca445..5b9f3c5 100644 --- a/features/status/index.tsx +++ b/features/status/index.tsx @@ -18,8 +18,8 @@ const StatusIndex = () => { Service is temporarily unavailable

- We're currently experiencing an issue with this service and our team - is working to restore it as quickly as possible. You can still + We're currently experiencing an issue with this service and our + team is working to restore it as quickly as possible. You can still browse other features while we fix the problem. Please check back in a few moments. We appreciate your patience.

diff --git a/shared/helpers/backendFetch.ts b/shared/helpers/backendFetch.ts index bfe592e..7416c03 100644 --- a/shared/helpers/backendFetch.ts +++ b/shared/helpers/backendFetch.ts @@ -42,7 +42,7 @@ export const backendFetch = async (path: string, options: RequestInit = {}) => { } return resJson; - } catch (error) { + } catch { redirect("/status?reason=backend-unreachable"); } };