This commit is contained in:
pradeepkumar
2026-03-26 15:00:52 +05:30
parent 5544cf4fc8
commit 2fccc0a5e3

View File

@@ -158,7 +158,9 @@ export function ProfileCard({
{/* Action Buttons */}
<div className="flex items-center justify-center lg:justify-start gap-3">
{messageHref ? (
{/* Message button - only enabled when connected */}
{(showEditButton || connectionStatus === 'ACCEPTED') && (
messageHref ? (
<Link
href={messageHref}
onClick={(e) => handleActionClick(e, messageHref)}
@@ -185,6 +187,7 @@ export function ProfileCard({
/>
Message
</button>
)
)}
{showEditButton && requestsHref ? (
// Agent's own profile - show Requests link with badge