EventHeader: fix initReport() calls

This commit is contained in:
Alex Gleason
2022-12-06 12:21:25 -06:00
parent 2cedd69f1d
commit 2d9c73cf9e

View File

@ -170,13 +170,13 @@ const EventHeader: React.FC<IEventHeader> = ({ status }) => {
secondary: intl.formatMessage(messages.blockAndReport),
onSecondary: () => {
dispatch(blockAccount(account.id));
dispatch(initReport(account, status));
dispatch(initReport(account, { status }));
},
}));
};
const handleReport = () => {
dispatch(initReport(account, status));
dispatch(initReport(account, { status }));
};
const handleModerate = () => {