diff --git a/backend/mpc-system/services/service-party-app/src/pages/Session.tsx b/backend/mpc-system/services/service-party-app/src/pages/Session.tsx
index a8fc8454..0dda488f 100644
--- a/backend/mpc-system/services/service-party-app/src/pages/Session.tsx
+++ b/backend/mpc-system/services/service-party-app/src/pages/Session.tsx
@@ -187,7 +187,7 @@ export default function Session() {
{/* 参与方列表 */}
- 参与方 ({(session.participants || []).length} / {session.threshold.n})
+ 参与方 ({(session.participants || []).length} / {session.threshold?.n || 0})
{(session.participants || []).map((participant, index) => (
@@ -201,7 +201,7 @@ export default function Session() {
))}
- {Array.from({ length: Math.max(0, session.threshold.n - (session.participants || []).length) }).map((_, index) => (
+ {Array.from({ length: Math.max(0, (session.threshold?.n || 0) - (session.participants || []).length) }).map((_, index) => (
#{(session.participants || []).length + index + 1}
@@ -214,6 +214,7 @@ export default function Session() {
{/* 阈值信息 */}
+ {session.threshold && (
阈值设置
@@ -225,6 +226,7 @@ export default function Session() {
+ )}
{/* 完成状态 */}
{session.status === 'completed' && session.publicKey && (