Fix production TypeScript build errors across meetups, media proxy, and join modal.
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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 : "操作失败");
|
||||
|
||||
Reference in New Issue
Block a user