Skip to content

Commit 5acb849

Browse files
committed
update incrementGateDisplayCount
1 parent 490dbbc commit 5acb849

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

dotcom-rendering/src/components/SignInGateSelector.importable.tsx

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -387,16 +387,10 @@ const getGateDisplayCount = (): number => {
387387

388388
const incrementGateDisplayCount = () => {
389389
const count = getGateDisplayCount();
390-
const now = new Date();
391-
const oneYearFromNow = new Date(now.getTime() + 365 * 86400);
392390
const newCount = count + 1;
393391
// Using `storage.local.set`, instead of `storage.local.setRaw`
394392
// because `setRaw` doesn't allow for specifying the duration.
395-
storage.local.set(
396-
'gate_display_count',
397-
newCount.toString(),
398-
oneYearFromNow,
399-
);
393+
storage.local.setRaw('gate_display_count', newCount.toString());
400394
};
401395

402396
const buildAuxiaGateDisplayData = async (

0 commit comments

Comments
 (0)