lushdog@outlook.com 1 vecka sedan
förälder
incheckning
e5bbcdb4e3
1 ändrade filer med 2 tillägg och 2 borttagningar
  1. 2 2
      src/app/my-lp/page.tsx

+ 2 - 2
src/app/my-lp/page.tsx

@@ -620,7 +620,7 @@ function MyLPPageContent() {
 		const allPositions = lpList.filter(
 			(item) =>
 				item.bonusInfo?.fromCreatorPosition &&
-				item.bonusInfo?.fromCreatorPositionStatus !== 0
+				!item.isParentPositionClosed
 		)
 		if (allPositions.length === 0) {
 			message.info('没有需要关闭的仓位')
@@ -758,7 +758,7 @@ function MyLPPageContent() {
 							onClick={() => handleCloseAllPositionWithoutParent()}
 							loading={loading}
 						>
-							一键关闭上级仓
+							一键关闭上级已关
 						</Button>
 						{selectedRowKeys.length > 0 && (
 							<Button