Correctly update dependencies for release
This commit is contained in:
parent
13bdb66ff0
commit
80ae600fe1
6 changed files with 178 additions and 1259 deletions
|
@ -7,7 +7,9 @@ export const setupInterceptors = (history: History) => {
|
|||
(resp) => resp,
|
||||
(error: AxiosError) => {
|
||||
if (error.response?.status === 400) {
|
||||
if (error.response?.data.errors?.[0].code === 'TwoFactorAuthRequiredException') {
|
||||
if (
|
||||
(error.response?.data as Record<string, any>).errors?.[0].code === 'TwoFactorAuthRequiredException'
|
||||
) {
|
||||
if (!window.location.pathname.startsWith('/account')) {
|
||||
history.replace('/account', { twoFactorRedirect: true });
|
||||
}
|
||||
|
|
Reference in a new issue