Skip to content

Commit

Permalink
fix: match selectors
Browse files Browse the repository at this point in the history
Signed-off-by: codeSafari10 <[email protected]>
  • Loading branch information
codeSafari10 committed Aug 21, 2024
1 parent 35b1ce3 commit b84c06f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ui/components/NotificationCenter/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ export const SEVERITY_STYLE = {

// Validate event against EVENT_SCHEMA and return [isValid,validatedEvent]
export const validateEvent = (event) => {
const eventCopy = { ...event };
event.status = eventCopy.status.trim() || STATUS.UNREAD;
event.severity = eventCopy.severity.trim() || SEVERITY.INFO;
const valid = eventCopy !== null && eventCopy !== undefined;
return [valid, eventCopy];
// const eventCopy = { ...event };
// event.status = eventCopy.status.trim() || STATUS.UNREAD;
// event.severity = eventCopy.severity.trim() || SEVERITY.INFO;
const valid = event !== null && event !== undefined;
return [valid, event];
};

// return validated events (adds default values if not present)
Expand Down

0 comments on commit b84c06f

Please sign in to comment.