Skip to content

Commit

Permalink
refactor(ToastNotification): simplify dismiss type evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
booc0mtaco committed Jan 3, 2025
1 parent 5224c37 commit b9caf4a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/ToastNotification/ToastNotification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ export const ToastNotification = ({
);

// if both are defined, temporarily prefer the original value of dissmissType to avoid accidental overrides
const tempDismissType =
dissmissType && dismissType ? dissmissType : dismissType;
const tempDismissType = dissmissType ?? dismissType;

assertEdsUsage(
[
Expand Down

0 comments on commit b9caf4a

Please sign in to comment.