Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Merge pull request #492 from hermeznetwork/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
AlbertoElias authored May 19, 2021
2 parents 128b3d6 + 7ec8348 commit 8945369
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/store/login/login.reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ function loginReducer (state = initialLoginState, action) {
switch (action.type) {
case loginActionTypes.GO_TO_WALLET_SELECTOR_STEP: {
return {
...initialLoginState
...state,
currentStep: initialLoginState.currentStep,
steps: { ...initialLoginState.steps },
addAccountAuthTask: { ...initialLoginState.addAccountAuthTask }
}
}
case loginActionTypes.GO_TO_ACCOUNT_SELECTOR_STEP: {
Expand Down Expand Up @@ -221,7 +224,12 @@ function loginReducer (state = initialLoginState, action) {
}
}
case loginActionTypes.RESET_STATE: {
return initialLoginState
return {
...state,
currentStep: initialLoginState.currentStep,
steps: { ...initialLoginState.steps },
addAccountAuthTask: { ...initialLoginState.addAccountAuthTask }
}
}
default: {
return state
Expand Down
2 changes: 1 addition & 1 deletion src/views/shared/token-balance/token-balance.view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function TokenBalance ({ amount, symbol }) {
return (
<p className={classes.root}>
<span className={classes.amount}>
{!isNaN(amount) ? amount.toFixed(2) : '--'} {symbol || <></>}
{!isNaN(amount) ? amount : '--'} {symbol || <></>}
</span>
</p>
)
Expand Down

0 comments on commit 8945369

Please sign in to comment.