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 7ba4983 commit 490dbbcCopy full SHA for 490dbbc
dotcom-rendering/src/components/SignInGateSelector.importable.tsx
@@ -375,9 +375,14 @@ const decideShowDefaultGate = (): ShowGateValues => {
375
};
376
377
const getGateDisplayCount = (): number => {
378
- const rawValue = storage.local.getRaw('gate_display_count');
379
- const count = parseInt(rawValue ?? '0', 10);
380
- return count;
+ const count = parseInt(
+ storage.local.getRaw('gate_display_count') ?? '0',
+ 10,
381
+ );
382
+ if (Number.isInteger(count)) {
383
+ return count;
384
+ }
385
+ return 0;
386
387
388
const incrementGateDisplayCount = () => {
0 commit comments