Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

lint + fixes

x032205261745b622e1
diff --git a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/RelayOption.tsx b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/RelayOption.tsx
index 4f5426a63f..256c322888 100644
--- a/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/RelayOption.tsx
+++ b/frontend/src/pages/organization/NetworkingPage/components/GatewayTab/components/RelayOption.tsx
@@ -14,17 +14,19 @@ export const RelayOption = ({
return (
<components.Option isSelected={isSelected} {...props}>
<div className="flex flex-row items-center justify-between">
- {isCreateOption ? (
+ {isCreateOption && (
<div className="flex items-center gap-x-1 text-mineshaft-400">
<FontAwesomeIcon icon={faPlus} size="sm" />
<span className="mr-auto">Deploy New Relay</span>
</div>
- ) : isAutoOption ? (
+ )}
+ {isAutoOption && (
<div className="flex items-center gap-x-1 text-mineshaft-400">
<FontAwesomeIcon icon={faWandMagicSparkles} size="sm" />
<span className="mr-auto">Auto Select Relay</span>
</div>
- ) : (
+ )}
+ {!isCreateOption && !isAutoOption && (
<>
<p className="truncate">{children}</p>
{isSelected && (