Fixes issue with same device on HT

This commit is contained in:
Viktor Sarström 2021-11-30 13:40:55 +01:00
parent 9874dda30e
commit dbba63e1ba
1 changed files with 4 additions and 1 deletions

View File

@ -122,7 +122,10 @@ export const Login = () => {
showModal(true)
let ssn
if (loginMethodId === 'otherdevice') {
if (
loginMethodId === 'otherdevice' ||
(loginMethodId === 'thisdevice' && !loginBankIdSameDeviceWithoutId)
) {
ssn = Personnummer.parse(text).format(true)
setPersonalIdNumber(ssn)
}