Merged in feat/sas-otp-error-handling (pull request #1272)
Feat/sas otp error handling * Improve error handling for SAS OTP * Remove failing and deprecated test Approved-by: Joakim Jäderberg
This commit is contained in:
@@ -31,9 +31,11 @@ export default async function SASxScandicLinkPage({
|
||||
}
|
||||
}
|
||||
|
||||
return alreadyLinked ? (
|
||||
<AlreadyLinkedError />
|
||||
) : (
|
||||
if (alreadyLinked) {
|
||||
redirect(`/${params.lang}/sas-x-scandic/error?errorCode=alreadyLinked`)
|
||||
}
|
||||
|
||||
return (
|
||||
<SASModal>
|
||||
<LinkAccountForm
|
||||
initialDateOfBirth={profile?.dateOfBirth ?? null}
|
||||
|
||||
Reference in New Issue
Block a user