Skip to content

Commit

Permalink
[Tech] changes after code review
Browse files Browse the repository at this point in the history
  • Loading branch information
claire2212 committed Jun 24, 2024
1 parent c4a99ea commit 251a73e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const useGetFilteredReportingsQuery = () => {
switch (periodFilter) {
case ReportingDateRangeEnum.DAY:
// to prevent refeteching every second we don't send seconds in query
startedAfterDate = `${customDayjs().utc().subtract(24, 'hour').toISOString().substring(0, 16)}:00.000Z`
startedAfterDate = `${customDayjs().utc().subtract(24, 'hour').format('YYYY-MM-DDTHH:mm')}:00.000Z`

break

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,20 @@ export function ResultList({ searchedText }: ResultListProps) {
dispatch(layerSidebarActions.toggleAmpResults())
}

const toggleAMPVisibility = isChecked => {
const toggleAMPVisibility = (isChecked: boolean | undefined) => {
if (!isChecked) {
dispatch(layerSidebarActions.toggleAmpResults(false))
}
dispatch(closeMetadataPanel())
dispatch(setIsAmpSearchResultsVisible(isChecked))
dispatch(setIsAmpSearchResultsVisible(!!isChecked))
}

const toggleRegulatoryVisibility = isChecked => {
const toggleRegulatoryVisibility = (isChecked: boolean | undefined) => {
if (!isChecked) {
dispatch(layerSidebarActions.toggleRegulatoryResults(false))
}
dispatch(closeMetadataPanel())
dispatch(setIsRegulatorySearchResultsVisible(isChecked))
dispatch(setIsRegulatorySearchResultsVisible(!!isChecked))
}

return (
Expand Down

0 comments on commit 251a73e

Please sign in to comment.