From a1bd6f5eb4b904145ef5a4ef5943205eacce5473 Mon Sep 17 00:00:00 2001 From: eddie <66155195+just-toby@users.noreply.github.com> Date: Tue, 14 Nov 2023 11:05:47 -0800 Subject: [PATCH] feat: update default router preference in redux (#7571) --- src/state/user/hooks.test.tsx | 4 ++-- src/state/user/reducer.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/state/user/hooks.test.tsx b/src/state/user/hooks.test.tsx index 964465aa76..0c176748df 100644 --- a/src/state/user/hooks.test.tsx +++ b/src/state/user/hooks.test.tsx @@ -72,13 +72,13 @@ describe('useUserSlippageTolerance', () => { }) describe('useRouterPreference', () => { - it('returns `auto` by default', () => { + it('returns `x` by default', () => { const { result: { current: [routerPreference], }, } = renderHook(() => useRouterPreference()) - expect(routerPreference).toBe(RouterPreference.API) + expect(routerPreference).toBe(RouterPreference.X) }) }) diff --git a/src/state/user/reducer.ts b/src/state/user/reducer.ts index 4c32ebade7..6b4d42b6d0 100644 --- a/src/state/user/reducer.ts +++ b/src/state/user/reducer.ts @@ -65,7 +65,7 @@ function pairKey(token0Address: string, token1Address: string) { export const initialState: UserState = { selectedWallet, userLocale: null, - userRouterPreference: RouterPreference.API, + userRouterPreference: RouterPreference.X, userHideClosedPositions: false, userSlippageTolerance: SlippageTolerance.Auto, userSlippageToleranceHasBeenMigratedToAuto: true,