Skip to content

Commit

Permalink
fix env group typo (#4585)
Browse files Browse the repository at this point in the history
  • Loading branch information
ianedwards authored Apr 27, 2024
1 parent 89c1b62 commit 8d49131
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dashboard/src/main/home/env-dashboard/tabs/EnvVarsTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,17 @@ const EnvVarsTab: React.FC<Props> = ({ envGroup, fetchEnvGroup }) => {
}
});

const envGroupProvider =
envGroup.type === "doppler" ? "Doppler" : "Infisical";

return (
<>
<Text size={16}>Environment variables</Text>
<Spacer y={0.5} />
{envGroup.type === "doppler" || envGroup.type === "infisical" ? (
<Text color="helper">
{envGroup.type === "doppler" ? "Doppler" : "Infisical"} environment
variables can only be updated from the Doppler dashboard.
{envGroupProvider} environment variables can only be updated from the{" "}
{envGroupProvider} dashboard.
</Text>
) : (
<Text color="helper">
Expand Down

0 comments on commit 8d49131

Please sign in to comment.