Skip to content
Snippets Groups Projects
Commit a4c5b2d2 authored by Guilhem CARRON's avatar Guilhem CARRON
Browse files

Unfix update profile (to be refixed)

parent 1cb2ebf5
No related branches found
No related tags found
1 merge request!255Fix/review fix
...@@ -29,14 +29,12 @@ const ProfileTypeFinished: React.FC<ProfileTypeFinishedProps> = ({ ...@@ -29,14 +29,12 @@ const ProfileTypeFinished: React.FC<ProfileTypeFinishedProps> = ({
const consistentProfileType = ProfileTypeService.checkConsistency( const consistentProfileType = ProfileTypeService.checkConsistency(
profileType profileType
) )
if (profileType !== consistentProfileType) { dispatch(
dispatch( updateProfile({
updateProfile({ profileType: consistentProfileType,
profileType: consistentProfileType, isProfileTypeCompleted: true,
isProfileTypeCompleted: true, })
}) )
)
}
}, [dispatch, profileType]) }, [dispatch, profileType])
return ( return (
......
import { DateTime } from 'luxon' import { DateTime } from 'luxon'
import { TimeStep } from 'enum/timeStep.enum' import { TimeStep } from 'enum/timeStep.enum'
import { FluidType } from 'enum/fluid.enum' import { FluidType } from 'enum/fluid.enum'
import { Dataload, TimePeriod } from 'models' import { Dataload } from 'models'
export function compareDates(dateA: DateTime, dateB: DateTime) { export function compareDates(dateA: DateTime, dateB: DateTime) {
return dateA < dateB ? -1 : 1 return dateA < dateB ? -1 : 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment