feat: update default router preference in redux (#7571)
This commit is contained in:
parent
f903eedc15
commit
a1bd6f5eb4
@ -72,13 +72,13 @@ describe('useUserSlippageTolerance', () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
describe('useRouterPreference', () => {
|
describe('useRouterPreference', () => {
|
||||||
it('returns `auto` by default', () => {
|
it('returns `x` by default', () => {
|
||||||
const {
|
const {
|
||||||
result: {
|
result: {
|
||||||
current: [routerPreference],
|
current: [routerPreference],
|
||||||
},
|
},
|
||||||
} = renderHook(() => useRouterPreference())
|
} = renderHook(() => useRouterPreference())
|
||||||
expect(routerPreference).toBe(RouterPreference.API)
|
expect(routerPreference).toBe(RouterPreference.X)
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@ function pairKey(token0Address: string, token1Address: string) {
|
|||||||
export const initialState: UserState = {
|
export const initialState: UserState = {
|
||||||
selectedWallet,
|
selectedWallet,
|
||||||
userLocale: null,
|
userLocale: null,
|
||||||
userRouterPreference: RouterPreference.API,
|
userRouterPreference: RouterPreference.X,
|
||||||
userHideClosedPositions: false,
|
userHideClosedPositions: false,
|
||||||
userSlippageTolerance: SlippageTolerance.Auto,
|
userSlippageTolerance: SlippageTolerance.Auto,
|
||||||
userSlippageToleranceHasBeenMigratedToAuto: true,
|
userSlippageToleranceHasBeenMigratedToAuto: true,
|
||||||
|
Loading…
Reference in New Issue
Block a user