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

9 lines
257 B
JavaScript
Raw Normal View History

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