classic-ui/modules/account/store/actions/checkRecoveryKey.js

9 lines
257 B
JavaScript
Raw Normal View History

2022-04-22 06:05:56 +03:00
export function checkRecoveryKey({ getters, dispatch }) {
const { encrypt: address } = getters.accounts
const recoveryKey = this.$sessionStorage.getItem(address)
if (!recoveryKey && !getters.encryptedPrivateKey) {
dispatch('removeAccount')
}
}