Skip to content

Commit

Permalink
fix: allow play button press for transports with no url
Browse files Browse the repository at this point in the history
  • Loading branch information
shanejonas committed Mar 15, 2021
1 parent 30f4de2 commit fcdac25
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/hooks/useTransport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,6 @@ const useTransport: TUseTransport = (transports, url, defaultTransportType, tran
[ITransport | undefined, Dispatch<ITransport>] = useState(defaultTransportType);
const [error, setError]: [JSONRPCError | undefined, Dispatch<JSONRPCError | undefined>] = useState();
useEffect(() => {
if (url === "" || url === undefined) {
setTransport(undefined);
return;
}
if (!transportType) {
return;
}
Expand Down

0 comments on commit fcdac25

Please sign in to comment.