Skip to content

Commit

Permalink
refactor: update VerifyGuardians to use new useTrimmedInput return type
Browse files Browse the repository at this point in the history
  • Loading branch information
kleysc committed Jan 21, 2025
1 parent dbcaec8 commit adbaff5
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,8 @@ export const VerifyGuardians: React.FC<Props> = ({ next }) => {
const isHost = role === GuardianRole.Host;
const [myHash, setMyHash] = useState('');
const [peersWithHash, setPeersWithHash] = useState<PeerWithHash[]>();
const [enteredHashes, handleHashChange] = useTrimmedInputArray(
peersWithHash ? peersWithHash.map(() => '') : []
);
const { values: enteredHashes, handleChange: handleHashChange } =
useTrimmedInputArray(peersWithHash ? peersWithHash.map(() => '') : []);
const [verifiedConfigs, setVerifiedConfigs] = useState<boolean>(false);
const [isStarting, setIsStarting] = useState(false);
const [error, setError] = useState<string>();
Expand Down

0 comments on commit adbaff5

Please sign in to comment.