fix: show membership date for stores without pickups
Treat Foodsharing's zero lastFetch value as no pickup, store memberSince, and show compact, visible mobile status information without hover tooltips.
This commit is contained in:
@@ -1515,7 +1515,8 @@ async function checkDormantMembers(sessionId, options = {}) {
|
||||
const lastFetchRaw = memberEntry.lastFetch ?? memberEntry.last_fetch ?? null;
|
||||
const lastFetchMs = parseLastFetchTimestamp(lastFetchRaw);
|
||||
const configEntry = configEntryMap.get(storeId)?.entry;
|
||||
if (updateLastPickupInfo(configEntry, lastFetchRaw)) {
|
||||
const memberSinceRaw = memberEntry.memberSince ?? memberEntry.member_since ?? null;
|
||||
if (updateLastPickupInfo(configEntry, lastFetchRaw, memberSinceRaw)) {
|
||||
configChanged = true;
|
||||
}
|
||||
if (sendWarnings && !skipMap.get(storeId) && (!lastFetchMs || lastFetchMs < fourMonthsAgo)) {
|
||||
|
||||
Reference in New Issue
Block a user