Skip to content

Commit

Permalink
fix(store): Uploading to store selects two agents
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiftyos committed Dec 19, 2024
1 parent b1d869a commit c985295
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ export const PublishAgentSelect: React.FC<PublishAgentSelectProps> = ({
<div className="grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3">
{agents.map((agent) => (
<div
key={agent.name}
key={agent.id}
className={`cursor-pointer overflow-hidden rounded-2xl transition-all ${
selectedAgent === agent.name
selectedAgentId === agent.id
? "shadow-lg ring-4 ring-violet-600"
: "hover:shadow-md"
}`}
Expand All @@ -124,7 +124,7 @@ export const PublishAgentSelect: React.FC<PublishAgentSelectProps> = ({
}}
tabIndex={0}
role="button"
aria-pressed={selectedAgent === agent.name}
aria-pressed={selectedAgentId === agent.id}
>
<div className="relative h-32 bg-gray-100 dark:bg-gray-700 sm:h-40">
<Image
Expand Down

0 comments on commit c985295

Please sign in to comment.