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(#1313): fix blank screen on GAs voting when wallet is not initially connected #1321

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ changes.
- Fix wrong link to the GA Details once it is in progress [Issue 1252](https://github.com/IntersectMBO/govtool/issues/1252)
- Fix validation of the GAs with missing references [Issue 1282](https://github.com/IntersectMBO/govtool/issues/1282)
- Fix displaying the GA Markdowns [Issue 1244](https://github.com/IntersectMBO/govtool/issues/1244)
- Fix app crash on voting on the GA without the connected wallet before [Issue 1313](https://github.com/IntersectMBO/govtool/issues/1313)

### Changed

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export const WalletOptionButton: FC<WalletOption> = ({
cip95Available,
pathToNavigate,
}) => {
const { pathname, hash } = useLocation();
const { pathname, hash, state } = useLocation();
const { enable, isEnableLoading } = useCardano();
const {
palette: { lightBlue },
Expand All @@ -38,6 +38,7 @@ export const WalletOptionButton: FC<WalletOption> = ({
pathToNavigate ?? pathname === "/"
? "/dashboard"
: `connected${pathname}${hash}`,
{ state },
);
return;
}
Expand Down
Loading