Correctly update dependencies for release

This commit is contained in:
DaneEveritt 2022-06-26 17:31:47 -04:00
parent 13bdb66ff0
commit 80ae600fe1
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
6 changed files with 178 additions and 1259 deletions

View file

@ -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 });
}

View file

@ -1,6 +1,6 @@
import React, { useMemo } from 'react';
import styled from 'styled-components/macro';
import v4 from 'uuid/v4';
import { v4 } from 'uuid';
import tw from 'twin.macro';
import Label from '@/components/elements/Label';
import Input from '@/components/elements/Input';