message: fix(toast): toasts now close again
diff: @@ -182,10 +182,18 @@ export class ToastManager extends React.Component<Props, State> {
  return {
  ...prevState,
  - [position]: prevState[position].map((toast) => ({
  + [position]: prevState[position].map((toast) => {
  + // id may be string or number
  + // eslint-disable-next-line eqeqeq
  + if (toast.id == id) {
  + return {
  ...toast,
  - requestClose: toast.id === id ? true : toast.requestClose,
  - })),
  + requestClose: true,
  + }
  + }
  +
  + return toast
  + }),
  }
  })
  }
  @@ -194,12 +202,12 @@ export class ToastManager extends React.Component<Props, State> {
  * Delete a toast record at its position
  */
  removeToast = (id: ToastId, position: ToastPosition) => {
  - this.setState((prevState) => {
  - return {
  + this.setState((prevState) => ({
  ...prevState,
  - [position]: prevState[position].filter((toast) => toast.id !== id),
  - }
  - })
  + // id may be string or number
  + // eslint-disable-next-line eqeqeq
  + [position]: prevState[position].filter((toast) => toast.id != id),
  + }))
  }
  isVisible = (id: ToastId) => {
  