Skip to content

Commit

Permalink
chore: review update
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraghazra committed Feb 14, 2024
1 parent 1b62f74 commit b380ff5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/blade/src/components/Toast/useToast.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
import type { Toast } from 'react-hot-toast';
import toast, { useToasterStore } from 'react-hot-toast';
import type { ToastProps } from './types';
Expand All @@ -15,7 +14,7 @@ type UseToastReturn = {
const useToast = (): UseToastReturn => {
const { toasts } = useToasterStore();
const show = (props: ToastProps): string => {
props.type = props.type || 'informational';
props.type = props.type ?? 'informational';

// Do not show promotional toasts if there is already one
if (
Expand Down

0 comments on commit b380ff5

Please sign in to comment.