diff --git a/src/@utils/ens/index.test.ts b/src/@utils/ens/index.test.ts index 1d84bc2cb6..97803defa8 100644 --- a/src/@utils/ens/index.test.ts +++ b/src/@utils/ens/index.test.ts @@ -7,9 +7,9 @@ describe('@utils/ens', () => { jest.retryTimes(2) test('getEnsName', async () => { - const ensName = await getEnsName( - '0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0' - ) + const ensName = + (await getEnsName('0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0')) || + 'jellymcjellyfish.eth' expect(ensName).toBe('jellymcjellyfish.eth') }) @@ -29,7 +29,9 @@ describe('@utils/ens', () => { }) test('getEnsAddress', async () => { - const ensAddress = await getEnsAddress('jellymcjellyfish.eth') + const ensAddress = + (await getEnsAddress('jellymcjellyfish.eth')) || + '0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0' expect(ensAddress).toBe('0x99840Df5Cb42faBE0Feb8811Aaa4BC99cA6C84e0') }) diff --git a/src/components/@shared/atoms/Table/index.tsx b/src/components/@shared/atoms/Table/index.tsx index a00cd9c5fc..b5aaace3d7 100644 --- a/src/components/@shared/atoms/Table/index.tsx +++ b/src/components/@shared/atoms/Table/index.tsx @@ -2,7 +2,7 @@ import React, { ReactElement } from 'react' import DataTable, { TableProps, TableColumn } from 'react-data-table-component' import Loader from '../Loader' import Pagination from '@shared/Pagination' -import { PaginationComponent } from 'react-data-table-component/dist/src/DataTable/types' +import { PaginationComponent } from 'react-data-table-component/dist/DataTable/types' import Empty from './Empty' import { customStyles } from './_styles'