Skip to content

Commit

Permalink
fix: Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fzavalia committed Oct 2, 2023
1 parent 9f13669 commit f30d994
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/worlds/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ export function* worldsSaga() {
yield takeEvery(FETCH_WORLDS_WALLET_STATS_REQUEST, handlefetchWorldsWalletStatsRequest)
}

/**
* Handle the fetch of the provided or current user's wallet stats.
* If no address is provided through the action, the wallet address from the currently connected wallet will be used.
* This saga is intended to be used without providing an address only if a wallet is connected or connecting.
* If called without a connected wallet and providing no address, it will get stuck until a wallet is connected.
*/
function* handlefetchWorldsWalletStatsRequest(action: FetchWalletWorldsStatsRequestAction) {
let address = action.payload.address

Expand Down

0 comments on commit f30d994

Please sign in to comment.