Merged in fix/improve-sas-error-logging (pull request #1854)

Improve SAS flow logging

* Improve logging


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-04-24 12:30:34 +00:00
parent 169094fc37
commit b354398c69
4 changed files with 12 additions and 9 deletions

View File

@@ -73,10 +73,8 @@ export default function OneTimePasswordForm({
switch (requestOtp.data?.status) {
case "ABUSED":
router.push(`/${params.lang}/sas-x-scandic/error?errorCode=tooManyCodes`)
return <Loading />
case "NOTSENT":
router.push(`/${params.lang}/sas-x-scandic/error`)
router.push(`/${params.lang}/sas-x-scandic/error?errorCode=tooManyCodes`)
return <Loading />
case "NULL":
case "RETRY":