Commit d0196117 authored by Stefan Probst's avatar Stefan Probst
Browse files

chore: log

parent 47966fb3
Pipeline #288850 passed with stages
in 11 minutes and 2 seconds
......@@ -207,9 +207,7 @@ export function AuthProvider(props: AuthProviderProps): JSX.Element {
const validateIdTokenMeta: MutationMetadata = {
messages: {
mutate() {
// return t(['common', 'auth', 'signing-in'])
// FIXME: never gets updated with success message, not sure why
return false
return t(['common', 'auth', 'signing-in'])
},
success() {
return t(['common', 'auth', 'sign-in-success'])
......
......@@ -60,7 +60,7 @@ export function createQueryClient(defaultErrorMessages: DefaultErrorMessageMap):
? meta.messages.mutate(variables, mutation)
: undefined
const message = customMessage != null ? customMessage : defaultErrorMessages.mutation.mutate
console.log('Mutation notification', message, mutation.mutationId)
/** Global loading toast can be prevented when `meta.messages.mutate` returns `false`. */
if (message !== false) {
const toastId = String(mutation.mutationId)
......@@ -75,7 +75,7 @@ export function createQueryClient(defaultErrorMessages: DefaultErrorMessageMap):
: undefined
const message =
customMessage != null ? customMessage : defaultErrorMessages.mutation.success
console.log('Success notification', message, mutation.mutationId)
/** Global loading toast can be prevented when `meta.messages.mutate` returns `false`. */
if (message !== false) {
const toastId = String(mutation.mutationId)
......
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