Commit 0064cb6f authored by Stefan Probst's avatar Stefan Probst
Browse files

Revert "fix: check if updating react-toastify fixes race condition"

This reverts commit eb27a848.
parent e263dde7
Pipeline #291059 passed with stages
in 9 minutes and 53 seconds
......@@ -207,7 +207,10 @@ export function AuthProvider(props: AuthProviderProps): JSX.Element {
const validateIdTokenMeta: MutationMetadata = {
messages: {
mutate() {
return t(['common', 'auth', 'signing-in'])
// return t(['common', 'auth', 'signing-in'])
// FIXME: never gets updated with success message (at least in firefox), although
// toast.update is called with the correct toast id.
return false
},
success() {
return t(['common', 'auth', 'sign-in-success'])
......
......@@ -87,6 +87,7 @@ export function createQueryClient(defaultErrorMessages: DefaultErrorMessageMap):
closeButton: null,
closeOnClick: null,
draggable: null,
delay: 100, // Work around one of the race conditions in `react-toastify`.
})
}
},
......@@ -116,6 +117,7 @@ export function createQueryClient(defaultErrorMessages: DefaultErrorMessageMap):
closeButton: null,
closeOnClick: null,
draggable: null,
delay: 100, // Work around one of the race conditions in `react-toastify`.
})
}
......
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