Add logic in DE to show NPS Survey (#1565)

* Send messages from DE to Portal to display NPS Survey

* Address comments
This commit is contained in:
sindhuba
2023-08-04 13:24:30 -07:00
committed by GitHub
parent 5f0c7bcea2
commit 92f43c28a7
4 changed files with 50 additions and 2 deletions

View File

@@ -91,7 +91,7 @@ const userContext: UserContext = {
collectionCreationDefaults: CollectionCreationDefaults,
};
function isAccountNewerThanThresholdInMs(createdAt: string, threshold: number) {
export function isAccountNewerThanThresholdInMs(createdAt: string, threshold: number) {
let createdAtMs: number = Date.parse(createdAt);
if (isNaN(createdAtMs)) {
createdAtMs = 0;