Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: disconnect wallet #250

Merged
merged 9 commits into from Aug 29, 2022

Conversation

dcrescimbeni
Copy link
Contributor

Description

Fixed error while disconnecting wallet.

Added some translations.

Closes #243

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Manual testing.

Checklist:

  • My code follows the existing style of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any UI changes have been tested and made responsive for mobile views

@dcrescimbeni dcrescimbeni changed the title Fix/disconnect wallet Fix: disconnect wallet Aug 26, 2022
@dcrescimbeni dcrescimbeni marked this pull request as ready for review August 26, 2022 13:46
src/Modules/Guilds/pages/NotFound.tsx Outdated Show resolved Hide resolved
const { chains } = useNetwork();
const defaultChain = useMemo(() => {
const { chains, chain } = useNetwork();
const validChain = useMemo(() => {
if (chains?.length === 0) return null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think you can remove this line, right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a very good question.

I tinkered with it to get an answer, and it seems that its removal won't affect the connection.

Maybe @mprasanjith can chime in?

Co-authored-by: Milton Tulli <milton.tulli@gmail.com>
@Filipv95
Copy link
Contributor

Hey @dcrescimbeni, I am unable to build up local env this is what I get, do you have any ideas?

compile

@dcrescimbeni
Copy link
Contributor Author

Hey @dcrescimbeni, I am unable to build up local env this is what I get, do you have any ideas?

compile

Yes! Should be fixed now

@github-actions
Copy link

✔️ Preview deployment is ready!

🔨 Explore the source changes: 54237c1

😎 Browse the preview: https://bafybeigc3u5srkctxgl5s2csd6g3afjdrrmy72h6qdjkhw5c3vmqdf5llu.ipfs.cf-ipfs.com

@github-actions
Copy link

✔️ Storybook deployment is ready!

😎 Browse Storybook: https://bafybeiejxwgz6hccom6dkdib6hd2pd7eapcgx5owsuga6wwjo4o4g5s4ly.ipfs.cf-ipfs.com

@Filipv95
Copy link
Contributor

@dcrescimbeni ty, I've check this PR, I'm able to disconnect my wallet now! After that I get switched to ETH network, is that expected behavior should we go with this?

@dcrescimbeni
Copy link
Contributor Author

@dcrescimbeni ty, I've check this PR, I'm able to disconnect my wallet now! After that I get switched to ETH network, is that expected behavior should we go with this?

Interesting.

Is a side effect of the wagmi hook returning undefined for the current network, so it connects to mainnet.

I'll see if there's a way to mitigate it. For now I'll set this to draft

@dcrescimbeni dcrescimbeni marked this pull request as draft August 26, 2022 19:28
@dcrescimbeni dcrescimbeni marked this pull request as ready for review August 26, 2022 19:39
@dcrescimbeni
Copy link
Contributor Author

@Filipv95 should be fixed now!

@github-actions
Copy link

✔️ Preview deployment is ready!

🔨 Explore the source changes: 2cc1d96

😎 Browse the preview: https://bafybeiduurtpjn2bnvshwupaxczt4yzto3mnj5kba5diwvow5goyugs74i.ipfs.cf-ipfs.com

@github-actions
Copy link

✔️ Storybook deployment is ready!

😎 Browse Storybook: https://bafybeigmtstkwkyfqwokdyuhkpfx5ulldvyz6pje2zi4fmaqrfm2ucswsu.ipfs.cf-ipfs.com

@Filipv95
Copy link
Contributor

@dcrescimbeni awesome, it works now!

@github-actions
Copy link

✔️ Preview deployment is ready!

🔨 Explore the source changes: 4ef5627

😎 Browse the preview: https://bafybeiebcfilasfmhga5ljunnngloivsp3irotokirnoxpbhlsyrs5mvf4.ipfs.cf-ipfs.com

@github-actions
Copy link

✔️ Storybook deployment is ready!

😎 Browse Storybook: https://bafybeiebfwvklibhabmfgfus7sfhipk4wb3sljzubol2e4nbh7gxu76cjm.ipfs.cf-ipfs.com

@dcrescimbeni dcrescimbeni merged commit c0d1d13 into DXgovernance:develop Aug 29, 2022
@dcrescimbeni dcrescimbeni deleted the fix/disconnect-wallet branch August 29, 2022 18:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to disconnect my wallet from DAPP
4 participants