revert TODO comments

This commit is contained in:
noumantahir 2022-07-26 22:12:12 +05:00
parent 0b10062a98
commit d2cb3f6c7e

View File

@ -135,7 +135,7 @@ class PinCodeContainer extends Component {
//this function updates realm with appropriate master key required for encyrption
//this function is important: must run while chaning pin
//and even logging in with existing pin code
//TODO: make sure this routine is not called
_updatePinCodeRealm = async (pinData) => {
try {
const { currentAccount, dispatch } = this.props;
@ -259,7 +259,6 @@ class PinCodeContainer extends Component {
} = this.props;
const { oldPinCode } = this.state;
//TOOD: make sure user is set with defualt pin here.
const pinData = {
pinCode: pin,
password: currentAccount ? currentAccount.password : '',
@ -395,7 +394,6 @@ class PinCodeContainer extends Component {
});
});
//TODO: make sure pinCode is rather saved as different redux state, encryptedUnlockPin
_savePinCode = (pin) => {
const { dispatch } = this.props;
const encryptedPin = encryptKey(pin, Config.PIN_KEY);