From dbba63e1ba0605d2306fa43cb1a5216e7ab08a41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Viktor=20Sarstr=C3=B6m?= Date: Tue, 30 Nov 2021 13:40:55 +0100 Subject: [PATCH] Fixes issue with same device on HT --- apps/skolplattformen-sthlm/components/login.component.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/skolplattformen-sthlm/components/login.component.tsx b/apps/skolplattformen-sthlm/components/login.component.tsx index 124d9d55..ee00b2b4 100644 --- a/apps/skolplattformen-sthlm/components/login.component.tsx +++ b/apps/skolplattformen-sthlm/components/login.component.tsx @@ -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) }