From 2aec3acdfa8514ddbc7763fdc34401ab5d1a7845 Mon Sep 17 00:00:00 2001 From: Liam Stevens <8955671+liamstevens111@users.noreply.github.com> Date: Wed, 22 Mar 2023 10:46:06 +0700 Subject: [PATCH] [#17] Rebase --- src/adapters/authAdapter.ts | 2 +- src/components/PrivateRoute/index.test.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/adapters/authAdapter.ts b/src/adapters/authAdapter.ts index 6effdeb..f2d1183 100644 --- a/src/adapters/authAdapter.ts +++ b/src/adapters/authAdapter.ts @@ -49,7 +49,7 @@ class AuthAdapter extends BaseAdapter { static resetPassword(email: string) { const requestParams = { - ...commonParams, + ...OauthParams, user: { email: email }, }; diff --git a/src/components/PrivateRoute/index.test.tsx b/src/components/PrivateRoute/index.test.tsx index b289f65..0b6e97a 100644 --- a/src/components/PrivateRoute/index.test.tsx +++ b/src/components/PrivateRoute/index.test.tsx @@ -1,7 +1,7 @@ /* eslint-disable camelcase */ import { MemoryRouter } from 'react-router-dom'; -import { render, screen, waitForElementToBeRemoved } from '@testing-library/react'; +import { render, screen } from '@testing-library/react'; import PrivateRoute from '.'; import { setItem, clearItem } from '../../helpers/localStorage';