Skip to content

Commit ec2cb3e

Browse files
committed
chore: prettier fix
1 parent 375f0f7 commit ec2cb3e

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

app/components/Views/Homepage/Sections/WhatsHappening/WhatsHappeningSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import { SectionRefreshHandle } from '../../types';
1616
import { selectWhatsHappeningEnabled } from '../../../../../selectors/featureFlagController/whatsHappening';
1717
import { strings } from '../../../../../../locales/i18n';
1818
import Routes from '../../../../../constants/navigation/Routes';
19-
import { MAX_ITEMS_DISPLAYED , WhatsHappeningEntryPoint } from './constants';
19+
import { MAX_ITEMS_DISPLAYED, WhatsHappeningEntryPoint } from './constants';
2020
import { useWhatsHappening } from './hooks';
2121
import { WhatsHappeningCard, WhatsHappeningCardSkeleton } from './components';
2222
import useHomeViewedEvent, {

app/components/Views/Homepage/Sections/WhatsHappening/eventProperties.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,18 @@ import type { WhatsHappeningItem } from './types';
66
*
77
* Optional fields (`category`, `impact`) are stripped when undefined so
88
* the resulting payload only includes keys that have a real value.
9+
*
10+
* The shape is widened with `Record<string, unknown>` so the result can be
11+
* passed directly to `AnalyticsEventBuilder.addProperties`, which expects
12+
* an index-signature-compatible bag.
913
*/
10-
export interface WhatsHappeningEventProps {
14+
export type WhatsHappeningEventProps = {
1115
event_id: string;
1216
card_index: number;
1317
category?: WhatsHappeningItem['category'];
1418
impact?: WhatsHappeningItem['impact'];
1519
asset_symbols: string[];
16-
}
20+
} & Record<string, unknown>;
1721

1822
export const getWhatsHappeningEventProps = (
1923
item: WhatsHappeningItem,

0 commit comments

Comments
 (0)