Skip to content

Commit

Permalink
disconnect api after getting info (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuteolaf authored Aug 24, 2023
1 parent c77568d commit b2a5e44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Modals/AddAddress/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const AddAddressModal = ({ open, onClose }: AddAddressModalProps) => {
select
sx={{ mt: '8px' }}
required
value={networkId}
value={networkId || ""}
onChange={(e) => setNetworkId(Number(e.target.value))}
>
{Object.entries(networks).map(([id, network], index) => (
Expand Down Expand Up @@ -151,7 +151,7 @@ export const AddAddressModal = ({ open, onClose }: AddAddressModalProps) => {
maxLength: 64,
}}
required
value={networkAddress}
value={networkAddress || ""}
error={networkAddress === ''}
onChange={(e) => setNetworkAddress(e.target.value)}
/>
Expand Down
2 changes: 2 additions & 0 deletions src/contracts/identity/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,8 @@ const IdentityContractProvider = ({ children }: Props) => {
await api.query.parachainInfo.parachainId()
).toPrimitive() as number;

await api.disconnect();

return {
name,
ss58Prefix,
Expand Down

0 comments on commit b2a5e44

Please sign in to comment.