Skip to content
This repository was archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
fix dispatch error
Browse files Browse the repository at this point in the history
  • Loading branch information
W3stside committed Dec 18, 2020
1 parent fd05355 commit 0e425a5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/custom/state/fee/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,13 @@ export const applyFeeMiddleware: Middleware = ({ dispatch, getState }) => next =

if (!isFeeDateValid || !tokenFee) {
const fee = await getFee(currencyIdFromPayload)
dispatch(
updateFee({
token: currencyIdFromPayload,
fee
})
)
fee &&
dispatch(
updateFee({
token: currencyIdFromPayload,
fee
})
)
}
}
}
Expand Down

0 comments on commit 0e425a5

Please sign in to comment.