Skip to content

Commit

Permalink
fix: show federation name option for solo feds
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodylow committed Aug 16, 2024
1 parent 6c4c8f6 commit 1b4f3d4
Showing 1 changed file with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const FederationSettingsForm: React.FC<FederationSettingsFormProps> = ({
title={`${t('set-config.federation-settings')}`}
isOpen={true}
>
{isHost && (
{!isFollower && (
<>
<FormControl>
<FormLabel>{t('set-config.federation-name')}</FormLabel>
Expand All @@ -52,19 +52,21 @@ export const FederationSettingsForm: React.FC<FederationSettingsFormProps> = ({
onChange={handleChangeFederationName}
/>
</FormControl>
<FormControl>
<FormLabel>{t('set-config.guardian-number')}</FormLabel>
<Select
value={numPeers}
onChange={(e) => setNumPeers(e.target.value)}
>
{BFT_NUMBERS.map((num) => (
<option key={num} value={num.toString()}>
{num}
</option>
))}
</Select>
</FormControl>
{isHost && (
<FormControl>
<FormLabel>{t('set-config.guardian-number')}</FormLabel>
<Select
value={numPeers}
onChange={(e) => setNumPeers(e.target.value)}
>
{BFT_NUMBERS.map((num) => (
<option key={num} value={num.toString()}>
{num}
</option>
))}
</Select>
</FormControl>
)}
<BftInfo numPeers={parseInt(numPeers)} />
</>
)}
Expand Down

0 comments on commit 1b4f3d4

Please sign in to comment.