set the default account upon successful /sync/get call #38
Labels
No labels
area: devops
area: discovery
area: docs
area: livestream
area: proposal
consider soon
dependencies
Epic
good first issue
hacktoberfest
help wanted
icebox
level: 1
level: 2
level: 3
level: 4
needs: exploration
needs: grooming
needs: priority
needs: repro
needs: tech design
on hold
priority: blocker
priority: high
priority: low
priority: medium
resilience
Tom's Wishlist
type: bug
type: discussion
type: improvement
type: new feature
type: refactor
type: task
type: testing
unplanned
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: LBRYCommunity/lbryinc#38
Loading…
Reference in a new issue
No description provided.
Delete branch "sync-default-account"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@seanyesmunt this looks good to me, can you review/merge?
A couple questions but I think they can be handled after this is merged.
@ -34,0 +34,4 @@
export function doSetDefaultAccount() {
return dispatch => {
dispatch({
type: ACTIONS.SET_DEFAULT_ACCOUNT,
Nothing is listening for this? Do we need it?
@ -34,0 +54,4 @@
}
// Set the default account
if (defaultId) {
If there is no
defaultId
, should we error to say that sync won't work for whatever reason?@ -34,0 +34,4 @@
export function doSetDefaultAccount() {
return dispatch => {
dispatch({
type: ACTIONS.SET_DEFAULT_ACCOUNT,
Just added this in case we may have to use it in the future.
@ -34,0 +54,4 @@
}
// Set the default account
if (defaultId) {
No need to throw an error here. If no default id is found, then the wallet will end up being set to the pre-existing default account when it was created.