Skip to content

Commit

Permalink
Fix write methods not getting selected
Browse files Browse the repository at this point in the history
  • Loading branch information
portdeveloper committed Mar 13, 2024
1 parent 13144c1 commit 652fc1a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,12 +95,12 @@ export const MethodSelector = ({
<div key={index} className="flex items-center gap-2 w-full pr-4">
<button
className={`btn btn-sm btn-ghost font-normal pr-1 w-full justify-between ${
isMethodSelected(method.name) ? "bg-purple-100 pointer-events-none" : ""
isMethodSelected(method.uid) ? "bg-purple-100 pointer-events-none" : ""
}`}
onClick={() => onMethodSelect(method.uid)}
>
{method.name}
{isMethodSelected(method.name) && (
{isMethodSelected(method.uid) && (
<button
className="ml-4 text-xs hover:bg-gray-100 rounded-md p-1 pointer-events-auto"
onClick={() => removeMethod(method.uid)}
Expand Down

0 comments on commit 652fc1a

Please sign in to comment.