Skip to content
Snippets Groups Projects
Commit 403844ad authored by Bastien DUMONT's avatar Bastien DUMONT :angel:
Browse files

add challenge asked to parseFS

parent 2ea7cb0b
No related branches found
No related tags found
2 merge requests!1154feat: GRDF consent email,!1137feat(grdf)!: update error messages
......@@ -86,6 +86,7 @@ const KonnectorViewerCard = ({
const currentFluidName = FluidType[currentFluidStatus.fluidType].toLowerCase()
const [openModal, setOpenModal] = useState(false)
const [isUpdating, setIsUpdating] = useState(false)
// TODO rename to isVerifyingIdentity
const [isLogging, setIsLogging] = useState(
fluidType === FluidType.ELECTRICITY
)
......
......@@ -33,9 +33,14 @@ export default class FluidService {
case 'done':
return FluidState.DONE
case 'errored':
if (state?.last_error === 'LOGIN_FAILED')
if (state?.last_error === 'LOGIN_FAILED') {
return FluidState.ERROR_LOGIN_FAILED
else return FluidState.ERROR
}
if (state?.last_error === 'CHALLENGE_ASKED') {
return FluidState.CHALLENGE_ASKED
}
return FluidState.ERROR
default:
return FluidState.NOT_CONNECTED
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment