added missing await

This commit is contained in:
Nouman Tahir 2022-07-27 14:32:53 +05:00
parent 3983059342
commit bfedd01144

View File

@ -129,7 +129,7 @@ export const migrateUserEncryption = async (dispatch, currentAccount, encUserPin
dispatch(setEncryptedUnlockPin(encUserPin))
const realmData = getUserDataWithUsername(currentAccount.name)
const realmData = await getUserDataWithUsername(currentAccount.name)
let _currentAccount = currentAccount;
_currentAccount.username = _currentAccount.name;