We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 490dbbc commit 5acb849Copy full SHA for 5acb849
dotcom-rendering/src/components/SignInGateSelector.importable.tsx
@@ -387,16 +387,10 @@ const getGateDisplayCount = (): number => {
387
388
const incrementGateDisplayCount = () => {
389
const count = getGateDisplayCount();
390
- const now = new Date();
391
- const oneYearFromNow = new Date(now.getTime() + 365 * 86400);
392
const newCount = count + 1;
393
// Using `storage.local.set`, instead of `storage.local.setRaw`
394
// because `setRaw` doesn't allow for specifying the duration.
395
- storage.local.set(
396
- 'gate_display_count',
397
- newCount.toString(),
398
- oneYearFromNow,
399
- );
+ storage.local.setRaw('gate_display_count', newCount.toString());
400
};
401
402
const buildAuxiaGateDisplayData = async (
0 commit comments