Skip to content

Commit

Permalink
R Austin review: remove unnecessary type check
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Kimmel committed May 18, 2020
1 parent 5bb0411 commit 7e85044
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const dataReducer: Reducer<DataState, ResolverAction> = (state = initialS
return state;
} else if (action.type === 'serverReturnedRelatedEventData') {
const statsMap = state.resultsEnrichedWithRelatedEventInfo;
if (statsMap && typeof statsMap?.set === 'function') {
if (statsMap) {
const relatedDataEntries = new Map([...statsMap, ...action.payload]);
return { ...state, resultsEnrichedWithRelatedEventInfo: relatedDataEntries };
}
Expand Down

0 comments on commit 7e85044

Please sign in to comment.