Commit 50648649 authored by ioedeveloper's avatar ioedeveloper

Fixed timeout bug

parent d8e23947
......@@ -59,8 +59,8 @@ export const Toaster = (props: ToasterProps) => {
if (state.timeOutId) {
clearTimeout(state.timeOutId)
}
setState(() => {
return { message: '', hide: true, hiding: false, timeOut: 0, timeOutId: null, showModal: false }
setState(prevState => {
return { ...prevState, message: '', hide: true, hiding: false, timeOutId: null, showModal: false }
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment