Fixed timeout bug

pull/693/head
ioedeveloper 4 years ago
parent d8e2394798
commit 50648649a0
  1. 4
      libs/remix-ui/toaster/src/lib/toaster.tsx

@ -59,8 +59,8 @@ export const Toaster = (props: ToasterProps) => {
if (state.timeOutId) { if (state.timeOutId) {
clearTimeout(state.timeOutId) clearTimeout(state.timeOutId)
} }
setState(() => { setState(prevState => {
return { message: '', hide: true, hiding: false, timeOut: 0, timeOutId: null, showModal: false } return { ...prevState, message: '', hide: true, hiding: false, timeOutId: null, showModal: false }
}) })
} }

Loading…
Cancel
Save