Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Szegoo committed Apr 19, 2024
1 parent c39fb1a commit 841c484
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 14 deletions.
14 changes: 2 additions & 12 deletions src/components/Sidebar/index.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
height: 3rem;
}

.logo > img {
.logo>img {
width: 100%;
height: 100%;
object-fit: contain;
Expand All @@ -35,20 +35,10 @@
flex-direction: column;
gap: 0.5rem;
}
position: fixed;
bottom: 8rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.networkSelector {
position: fixed;
left: 1rem;
bottom: 1rem;
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: .5rem;
}

.menuIcon {
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/apis/CoretimeApi/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const CoretimeApiContextProvider = (props: any) => {
const disconnectCoretime = () => disconnect(state);

useEffect(() => {
if (!network || state.socket == getUrl(network)) return;
if (state.socket == getUrl(network)) return;
const updateNetwork = network != '' && state.socket != getUrl(network);
connect(state, getUrl(network), dispatch, updateNetwork, types);
}, [network, state]);
Expand Down
2 changes: 1 addition & 1 deletion src/contexts/apis/RelayApi/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const RelayApiContextProvider = (props: any) => {
};

useEffect(() => {
if (!network || state.socket == getUrl(network)) return;
if (state.socket == getUrl(network)) return;
const updateNetwork = network != '' && state.socket != getUrl(network);
connect(state, getUrl(network), dispatch, updateNetwork);
}, [network, state]);
Expand Down

0 comments on commit 841c484

Please sign in to comment.