Skip to content

Commit

Permalink
Merge pull request #120 from kaleido-io/gatewaymode-fixes
Browse files Browse the repository at this point in the history
UI fixes for when verifiers is empty
  • Loading branch information
nguyer authored Mar 26, 2024
2 parents 81b11ac + 765cb30 commit a3ff4bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/src/components/Forms/Tokens/TransferForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const TransferForm: React.FC = () => {
if (isMounted) {
const verifiers = verifiersRes;
setTokenVerifiers(verifiers);
if (verifiers.length > 0) {
if (verifiers?.length > 0) {
setRecipient(verifiers[0].value);
}
}
Expand Down Expand Up @@ -189,7 +189,7 @@ export const TransferForm: React.FC = () => {
<FormControl fullWidth required>
<Autocomplete
freeSolo
options={tokenVerifiers.map((identity) => identity.did)}
options={tokenVerifiers?.map((identity) => identity.did) || []}
renderInput={(params) => (
<TextField {...params} label={t('tokenRecipient')} />
)}
Expand Down

0 comments on commit a3ff4bb

Please sign in to comment.