Skip to content

Commit

Permalink
Merge pull request fedimint#499 from Kodylow/fix-solo-federation-sett…
Browse files Browse the repository at this point in the history
…ings
  • Loading branch information
Kodylow committed Aug 17, 2024
2 parents 036b5bd + 1b4f3d4 commit 39a063c
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 39a063c

Please sign in to comment.