Skip to content

Commit

Permalink
chore: add comment to explain set READY fallback behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
alexruzenhack committed Nov 1, 2023
1 parent f31c263 commit 3825b2e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sagas/networkSettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,12 @@ export function* initNetworkSettings() {

const status = yield select((state) => state.networkSettingsStatus);
if (status === NETWORKSETTINGS_STATUS.WAITING) {
// This branch completes the network update by delivering
// a success feedback to the user.
yield put(networkSettingsUpdateSuccess());
} else {
// This branch is a fallback to set network status to READY
// after wallet initialization.
yield put(networkSettingsUpdateReady());
}
}
Expand Down

0 comments on commit 3825b2e

Please sign in to comment.