Skip to content

Commit

Permalink
type error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jiji14 committed May 25, 2024
1 parent 90b631c commit a3570d6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions www/js/metrics/SurveyComparisonCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ function getResponsePctForDays(days: DayOfMetricData<'response_count'>[]) {
}

type Props = {
userMetrics: MetricsData;
aggMetrics: MetricsData;
userMetrics: MetricsData | undefined;
aggMetrics: MetricsData | undefined;
};

export type SurveyComparison = {
Expand Down
4 changes: 2 additions & 2 deletions www/js/metrics/SurveyTripCategoriesCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ type SurveyTripRecord = {
};

type Props = {
userMetrics: MetricsData;
aggMetrics: MetricsData;
userMetrics: MetricsData | undefined;
aggMetrics: MetricsData | undefined;
};
const SurveyTripCategoriesCard = ({ userMetrics, aggMetrics }: Props) => {
const { colors } = useAppTheme();
Expand Down

0 comments on commit a3570d6

Please sign in to comment.