Check if active profile is outdated before using

This commit is contained in:
Daniel
2022-10-11 14:51:45 +02:00
parent eac91ae627
commit 096e140ee1

View File

@@ -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
}