diff --git a/apps/user/public/oauth/google/index.html b/apps/user/public/oauth/google/index.html
index 2961fd0..23f4bd1 100644
--- a/apps/user/public/oauth/google/index.html
+++ b/apps/user/public/oauth/google/index.html
@@ -1,28 +1,29 @@
-
-
+
+
OAuth Redirect
-
+
-
- Redirecting…
-
+ Redirecting…
diff --git a/apps/user/public/oauth/telegram/index.html b/apps/user/public/oauth/telegram/index.html
index 82deea9..e650481 100644
--- a/apps/user/public/oauth/telegram/index.html
+++ b/apps/user/public/oauth/telegram/index.html
@@ -1,27 +1,28 @@
-
-
+
+
OAuth Redirect
-
+
-
- Redirecting…
-
+ Redirecting…
diff --git a/apps/user/src/sections/subscribe/payment-methods.tsx b/apps/user/src/sections/subscribe/payment-methods.tsx
index c9695f6..b98bbfe 100644
--- a/apps/user/src/sections/subscribe/payment-methods.tsx
+++ b/apps/user/src/sections/subscribe/payment-methods.tsx
@@ -9,7 +9,7 @@ import {
import { cn } from "@workspace/ui/lib/utils";
import { getAvailablePaymentMethods } from "@workspace/ui/services/user/portal";
import type React from "react";
-import React, { memo } from "react";
+import { memo, useEffect } from "react";
import { useTranslation } from "react-i18next";
interface PaymentMethodsProps {
@@ -37,7 +37,7 @@ const PaymentMethods: React.FC = ({
// Only set a default when the current value is not a valid option.
// This avoids resetting the user's selection on refetch (common on mobile).
// Prefer non-balance methods when possible.
- React.useEffect(() => {
+ useEffect(() => {
if (!data || data.length === 0) return;
const valid = data.some((m) => String(m.id) === String(value));
if (valid) return;
diff --git a/apps/user/src/sections/user/announcement.tsx b/apps/user/src/sections/user/announcement.tsx
index 5e31bb6..bcb962a 100644
--- a/apps/user/src/sections/user/announcement.tsx
+++ b/apps/user/src/sections/user/announcement.tsx
@@ -18,6 +18,7 @@ import { useGlobalStore } from "@/stores/global";
export default function Announcement({ type }: { type: "popup" | "pinned" }) {
const { t } = useTranslation("dashboard");
const { user } = useGlobalStore();
+ const [open, setOpen] = useState(false);
const { data } = useQuery({
queryKey: ["announcement", type],
@@ -38,14 +39,12 @@ export default function Announcement({ type }: { type: "popup" | "pinned" }) {
enabled: !!user,
});
- if (!data) return null;
-
- const [open, setOpen] = useState(false);
-
useEffect(() => {
if (type === "popup" && !!data) setOpen(true);
}, [data, type]);
+ if (!data) return null;
+
if (type === "popup") {
return (