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
Branches
Tags
1 merge request!255Fix/review fix
......@@ -29,14 +29,12 @@ const ProfileTypeFinished: React.FC<ProfileTypeFinishedProps> = ({
const consistentProfileType = ProfileTypeService.checkConsistency(
profileType
)
if (profileType !== consistentProfileType) {
dispatch(
updateProfile({
profileType: consistentProfileType,
isProfileTypeCompleted: true,
})
)
}
dispatch(
updateProfile({
profileType: consistentProfileType,
isProfileTypeCompleted: true,
})
)
}, [dispatch, profileType])
return (
......
import { DateTime } from 'luxon'
import { TimeStep } from 'enum/timeStep.enum'
import { FluidType } from 'enum/fluid.enum'
import { Dataload, TimePeriod } from 'models'
import { Dataload } from 'models'
export function compareDates(dateA: DateTime, dateB: DateTime) {
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