Skip to content

Commit

Permalink
chore: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
leangseu-edx committed Dec 7, 2023
1 parent f465c07 commit 7d4cf94
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/components/StatusAlert/hooks/useCreateAlert.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,13 @@ const useCreateAlert = ({ step }) => {
headingVals = {},
messageVals = {},
...overrides
}) => {
try {
formatMessage(message, messageVals);
heading && formatMessage(heading, headingVals);
}
catch (e) {
debugger
console.error('Invalid message or message values passed to useCreateAlert', e);
}

return ({
}) => ({
...alertConfig,
message: formatMessage(message, messageVals),
heading: heading && formatMessage(heading, headingVals),
actions,
...overrides,
})};
});
};

export default useCreateAlert;

0 comments on commit 7d4cf94

Please sign in to comment.