mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-26 12:16:07 +01:00
Handle if GetState is null in biometric integrity check (#1082)
This commit is contained in:
parent
0388738e02
commit
a50e66faf4
@ -17,7 +17,10 @@ namespace Bit.iOS.Core.Services
|
||||
public async Task<bool> SetupBiometricAsync()
|
||||
{
|
||||
var state = GetState();
|
||||
await _storageService.SaveAsync("biometricState", ToBase64(state));
|
||||
if (state != null)
|
||||
{
|
||||
await _storageService.SaveAsync("biometricState", ToBase64(state));
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -35,8 +38,12 @@ namespace Bit.iOS.Core.Services
|
||||
else
|
||||
{
|
||||
var state = GetState();
|
||||
if (state != null)
|
||||
{
|
||||
return FromBase64(oldState).Equals(state);
|
||||
}
|
||||
|
||||
return FromBase64(oldState).Equals(state);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user