Fix birthday bug being perpetually snoozed (#9488)
This commit is contained in:
@@ -20,6 +20,15 @@ export function snoozeBirthdateUpdateAllowedForDid(did: string) {
|
||||
account.set([did, 'birthdateLastUpdatedAt'], new Date().toISOString())
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if we've already snoozed bday updates. In some cases, if one is
|
||||
* present, we don't need to set another, such as in AA when reading initial
|
||||
* data on load.
|
||||
*/
|
||||
export function hasSnoozedBirthdateUpdateForDid(did: string) {
|
||||
return !!account.get([did, 'birthdateLastUpdatedAt'])
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns whether a birthdate update is currently allowed, based on the
|
||||
* last update timestamp stored locally.
|
||||
|
||||
Reference in New Issue
Block a user