diff --git a/src/app/[locale]/messiala/page.tsx b/src/app/[locale]/messiala/page.tsx index 69f3b5a..ba73ce0 100644 --- a/src/app/[locale]/messiala/page.tsx +++ b/src/app/[locale]/messiala/page.tsx @@ -946,7 +946,6 @@ export default function Expo() { ].includes(hoveredRoom)) || (currentView === "fuajee" && [ - roomNames.ityk, roomNames.tartuyk, roomNames.estoniagamedev, roomNames.info, diff --git a/src/lib/loadRules.ts b/src/lib/loadRules.ts index cc64f78..95866aa 100644 --- a/src/lib/loadRules.ts +++ b/src/lib/loadRules.ts @@ -15,7 +15,7 @@ export async function loadRules( locale: Locale, ): Promise { // Try to load the file for the current locale first - let filePath = path.join( + const filePath = path.join( process.cwd(), "src", "data", @@ -28,7 +28,7 @@ export async function loadRules( // Check if file exists for current locale if (fs.existsSync(filePath)) { const file = await import("fs").then(() => - fs.readFileSync(filePath, "utf8") + fs.readFileSync(filePath, "utf8"), ); return file; } @@ -60,7 +60,7 @@ export async function loadRules( error, ); throw new Error( - `Failed to load rules for ${ruleType}: ${error instanceof Error ? error.message : 'Unknown error'}`, + `Failed to load rules for ${ruleType}: ${error instanceof Error ? error.message : "Unknown error"}`, ); } } @@ -97,7 +97,7 @@ export async function loadRulesBun( error, ); throw new Error( - `Failed to load rules for ${ruleType}: ${error instanceof Error ? error.message : 'Unknown error'}`, + `Failed to load rules for ${ruleType}: ${error instanceof Error ? error.message : "Unknown error"}`, ); } } diff --git a/src/lib/rules.ts b/src/lib/rules.ts index 90317cc..1250e5a 100644 --- a/src/lib/rules.ts +++ b/src/lib/rules.ts @@ -45,7 +45,7 @@ export async function getRules( return fallbackContent; } catch (fallbackError) { throw new Error( - `Rules file not found for ${ruleType} in either ${locale} or et locale`, + `Rules file not found for ${ruleType} in either ${locale} or et locale: ${fallbackError}`, ); } }