Skip to content

Commit

Permalink
#8743 Frontend test and build github actions are failing (#8744)
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap committed Oct 28, 2022
1 parent 2ae351d commit 5888617
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/client/components/misc/enhancers/utcDateWrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import {
*/

export default ({dateTypeProp = "type", dateProp = 'date', setDateProp = 'onSetDate'} = {}) => compose(
withPropsOnChange([dateProp], ({ [dateProp]: date, [dateTypeProp]: type, useUTCOffset = true }) /* props */ => {
withPropsOnChange([dateProp], ({ [dateProp]: date, [dateTypeProp]: type, useUTCOffset = true }) => {
let dateToParse = date;
let datePart = "1970-01-01";
let timePart = "00:00:00";
Expand Down Expand Up @@ -81,7 +81,7 @@ export default ({dateTypeProp = "type", dateProp = 'date', setDateProp = 'onSetD
};
}),
withHandlers({
[setDateProp]: ({[setDateProp]: changeVal, [dateTypeProp]: type, useUTCOffset = true} = {}) /* props */ => (date, stringDate) /* event */ => {
[setDateProp]: ({[setDateProp]: changeVal, [dateTypeProp]: type, useUTCOffset = true} = {}) => (date, stringDate) => {
if (!date) {
changeVal(null);
} else {
Expand Down

0 comments on commit 5888617

Please sign in to comment.