Skip to content

Commit

Permalink
Merge pull request #130 from RuneLabsxyz/controller-fixes
Browse files Browse the repository at this point in the history
feat: when already connectd doen't ask to connect again
  • Loading branch information
0xMugen authored Oct 11, 2024
2 parents c0ed15f + 18164c4 commit 655a09d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import { playSoundEffectLoop } from '$lib/3d/utils/audioUtils';
import { onMount } from 'svelte';
import { connect } from '$lib/controller';
import { account } from '$stores/account';
import { env } from '$stores/network';
import { initializeStore } from '$stores/dojoStore'
Expand All @@ -20,7 +21,9 @@
async function connectAndGoto(config: string) {
env.set(config as "mainnet" | "slot");
await initStore();
await connect(config);
if (!$account) {
await connect(config);
}
goto(`${config}/client/games/openGames`);
}
Expand Down

0 comments on commit 655a09d

Please sign in to comment.