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 1adb8f4Copy full SHA for 1adb8f4
dotcom-rendering/src/components/SignInGateSelector.importable.tsx
@@ -375,9 +375,11 @@ 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'), 10);
+ if (Number.isInteger(count)) {
+ return count;
381
+ }
382
+ return 0;
383
384
385
const incrementGateDisplayCount = () => {
0 commit comments