Client - fix error message on logout

This commit is contained in:
Sam 2021-09-05 09:18:12 +02:00
parent 00a400bc5b
commit 0e98efe5a9

View File

@ -108,13 +108,15 @@
watch( watch(
() => props.user.username, () => props.user.username,
async () => { async (newUsername) => {
if (newUsername) {
store.dispatch(STATS_STORE.ACTIONS.GET_USER_STATS, { store.dispatch(STATS_STORE.ACTIONS.GET_USER_STATS, {
username: props.user.username, username: newUsername,
filterType: 'by_time', filterType: 'by_time',
params: apiParams, params: apiParams,
}) })
} }
}
) )
return { return {
chartParams, chartParams,