Skip to content

Commit

Permalink
Check if active profile is outdated before using
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Oct 11, 2022
1 parent eac91ae commit 096e140
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion profile/get.go
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ profileFeed:
}

// Check if this profile is already active and return the active version instead.
if activeProfile := getActiveProfile(profile.ScopedID()); activeProfile != nil {
if activeProfile := getActiveProfile(profile.ScopedID()); activeProfile != nil && !activeProfile.IsOutdated() {
return activeProfile, nil
}

Expand Down

0 comments on commit 096e140

Please sign in to comment.