Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
interface
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LuckySwap
interface
Commits
ca4d9159
Unverified
Commit
ca4d9159
authored
May 05, 2021
by
Moody Salem
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix it everywhere
parent
bdb6327c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
reducer.ts
src/state/user/reducer.ts
+2
-2
No files found.
src/state/user/reducer.ts
View file @
ca4d9159
...
@@ -62,7 +62,7 @@ export const initialState: UserState = {
...
@@ -62,7 +62,7 @@ export const initialState: UserState = {
matchesDarkMode
:
false
,
matchesDarkMode
:
false
,
userExpertMode
:
false
,
userExpertMode
:
false
,
userSingleHopOnly
:
false
,
userSingleHopOnly
:
false
,
userSlippageTolerance
:
5
0
,
userSlippageTolerance
:
1
0
,
userDeadline
:
DEFAULT_DEADLINE_FROM_NOW
,
userDeadline
:
DEFAULT_DEADLINE_FROM_NOW
,
tokens
:
{},
tokens
:
{},
pairs
:
{},
pairs
:
{},
...
@@ -76,7 +76,7 @@ export default createReducer(initialState, (builder) =>
...
@@ -76,7 +76,7 @@ export default createReducer(initialState, (builder) =>
// slippage isnt being tracked in local storage, reset to default
// slippage isnt being tracked in local storage, reset to default
// noinspection SuspiciousTypeOfGuard
// noinspection SuspiciousTypeOfGuard
if
(
typeof
state
.
userSlippageTolerance
!==
'
number
'
)
{
if
(
typeof
state
.
userSlippageTolerance
!==
'
number
'
)
{
state
.
userSlippageTolerance
=
5
0
state
.
userSlippageTolerance
=
1
0
}
}
// deadline isnt being tracked in local storage, reset to default
// deadline isnt being tracked in local storage, reset to default
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment