From 2215b01743c440ed914368eb4a2523e48be16ec4 Mon Sep 17 00:00:00 2001 From: local Date: Tue, 23 Jun 2026 23:54:29 +0800 Subject: [PATCH] fix coin seller stock actions for disabled sellers --- src/features/host-org/hooks/useHostCoinSellersPage.js | 4 ++-- src/features/host-org/pages/HostCoinSellersPage.jsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/features/host-org/hooks/useHostCoinSellersPage.js b/src/features/host-org/hooks/useHostCoinSellersPage.js index 48a68d0..c11308b 100644 --- a/src/features/host-org/hooks/useHostCoinSellersPage.js +++ b/src/features/host-org/hooks/useHostCoinSellersPage.js @@ -159,7 +159,7 @@ export function useHostCoinSellersPage() { }; const openStockCredit = (seller) => { - if (!seller?.userId || seller.status !== "active" || !abilities.canStockCredit) { + if (!seller?.userId || !abilities.canStockCredit) { return; } setSelectedSeller(seller); @@ -168,7 +168,7 @@ export function useHostCoinSellersPage() { }; const openStockDebit = (seller) => { - if (!seller?.userId || seller.status !== "active" || !abilities.canStockCredit) { + if (!seller?.userId || !abilities.canStockCredit) { return; } setSelectedSeller(seller); diff --git a/src/features/host-org/pages/HostCoinSellersPage.jsx b/src/features/host-org/pages/HostCoinSellersPage.jsx index 8f58539..bfec250 100644 --- a/src/features/host-org/pages/HostCoinSellersPage.jsx +++ b/src/features/host-org/pages/HostCoinSellersPage.jsx @@ -230,7 +230,7 @@ export function HostCoinSellersPage() {