Skip to content

Commit

Permalink
fix(#1313): fix blank screen on GAs voting when wallet is not initial…
Browse files Browse the repository at this point in the history
…ly connected
  • Loading branch information
MSzalowski committed Jun 18, 2024
1 parent c9b0f69 commit beb84eb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
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
3 changes: 2 additions & 1 deletion govtool/frontend/src/components/molecules/WalletOption.tsx
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

0 comments on commit beb84eb

Please sign in to comment.