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: manage voting power when stronghold locked #5897

Merged
merged 2 commits into from Feb 16, 2023
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -1,5 +1,5 @@
import { isStrongholdUnlocked } from '@core/profile-manager'
import { openPopup, popupState } from '@auxiliary/popup'
import { closePopup, openPopup, popupState } from '@auxiliary/popup'
import { get } from 'svelte/store'
import { handleError } from '@core/error/handlers/handleError'

Expand All @@ -17,10 +17,10 @@ export async function checkOrUnlockStronghold(
}
try {
const strongholdUnlocked = await isStrongholdUnlocked()

if (strongholdUnlocked) {
return callback()
} else {
closePopup(true)
openPopup({
type: 'unlockStronghold',
props: {
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Expand Up @@ -7502,7 +7502,7 @@ svelte-loader@^3.0.0:
svelte-dev-helper "^1.1.9"
svelte-hmr "^0.14.2"

svelte-markdown@^0.2.3:
svelte-markdown@0.2.3:
version "0.2.3"
resolved "https://registry.yarnpkg.com/svelte-markdown/-/svelte-markdown-0.2.3.tgz#16c6db61605512100cf25c3e18f8e4105837895c"
integrity sha512-2h680NzTXnAD0CXhxe3GeHl6W+ayG4iKQRl+BIDRw+R0mUE0OiNxP1Vt8Rn+aWevB/LBiBIPCAwvL+0BkG057A==
Expand Down