Fix production TypeScript build errors across meetups, media proxy, and join modal.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric
2026-06-08 02:41:03 -05:00
parent 59c9072a35
commit 60dfe538b0
3 changed files with 4 additions and 4 deletions

View File

@@ -83,10 +83,10 @@ export default function JoinModal({ isOpen, onClose, initialEmail = "", vipOnly
method: "POST",
body: JSON.stringify({ email: em }),
});
if (!data?.ok) {
if (!data?.ok || !data.token) {
throw new Error(data?.error || (locale === "zh" ? "操作失败" : "Operation failed"));
}
await saveAuth(data.token, data.record);
await saveAuth(data.token, data.record ?? {});
continueAfterAuth(String(data.user_id));
} catch (err) {
setError(err instanceof Error ? err.message : "操作失败");