Skip to content

Commit

Permalink
chore(sagas): match saga name with function for ease of search (#6299)
Browse files Browse the repository at this point in the history
  • Loading branch information
mperdomo-bc committed Feb 22, 2024
1 parent 7fc497d commit 4ee3ecb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ export default ({ coreSagas, networks }) => {

return function* transferEthSaga() {
yield takeLatest(actions.confirmTransferEth, transferEthSagas.confirmTransferEth)
yield takeLatest(actions.transferEthInitialized, transferEthSagas.initialized)
yield takeLatest(actions.transferEthInitialized, transferEthSagas.transferEthInitialized)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ import { actions as A } from './transferEthSlice'
export const logLocation = 'modules/transferEth/sagas'

export default ({ coreSagas, networks }) => {
const initialized = function* ({ payload }: ReturnType<typeof A.transferEthInitialized>) {
const transferEthInitialized = function* ({
payload
}: ReturnType<typeof A.transferEthInitialized>) {
try {
yield put(A.transferEthPaymentUpdatedLoading())
let payment: EthPaymentType = coreSagas.payment.eth.create({ network: networks.eth })
Expand Down Expand Up @@ -51,6 +53,6 @@ export default ({ coreSagas, networks }) => {

return {
confirmTransferEth,
initialized
transferEthInitialized
}
}

0 comments on commit 4ee3ecb

Please sign in to comment.