message: More suggestionsx
diff: @@ -156,6 +156,7 @@ export function loadStores(): ThunkResult<DimStore[] | undefined> {
  };
  }
  +// time in milliseconds after which we could expect Bnet to return an updated response
  const BUNGIE_CACHE_TTL = 15_000;
  let minimumCacheAge = Number.MAX_SAFE_INTEGER;
  @@ -209,10 +210,8 @@ function loadProfile(account: DestinyAccount): ThunkResult<DestinyProfileRespons
  const remoteProfileMintedDate = new Date(remoteProfileResponse.responseMintedTimestamp ?? 0);
  // compare new response against cached response, toss if it's not newer!
  - if (
  - profileResponse &&
  - remoteProfileMintedDate.getTime() <= cachedProfileMintedDate.getTime()
  - ) {
  + if (profileResponse) {
  + if (remoteProfileMintedDate.getTime() <= cachedProfileMintedDate.getTime()) {
  warnLog(
  'd2-stores',
  'Profile from Bungie.net was not newer than cached profile, discarding.',
  @@ -221,7 +220,7 @@ function loadProfile(account: DestinyAccount): ThunkResult<DestinyProfileRespons
  );
  // undefined means skip processing, in case we already have computed stores
  return storesLoadedSelector(getState()) ? undefined : profileResponse;
  - } else if (profileResponse) {
  + } else {
  minimumCacheAge = Math.min(
  minimumCacheAge,
  remoteProfileMintedDate.getTime() - cachedProfileMintedDate.getTime()
  @@ -235,6 +234,7 @@ function loadProfile(account: DestinyAccount): ThunkResult<DestinyProfileRespons
  cachedProfileMintedDate
  );
  }
  + }
  profileResponse = remoteProfileResponse;
  set(`profile-${account.membershipId}`, profileResponse); // don't await
  