Fix
This commit is contained in:
@@ -20,9 +20,11 @@ export const storeCastData = (payload: unknown) => {
|
||||
// localStorage. We don't validate here, we'll validate when we read these
|
||||
// values back in `readCastData`.
|
||||
for (const [key, value] of Object.entries(payload)) {
|
||||
typeof value == "string" || typeof value == "number"
|
||||
? localStorage.setItem(key, value.toString())
|
||||
: localStorage.removeItem(key);
|
||||
if (typeof value == "string" || typeof value == "number") {
|
||||
localStorage.setItem(key, value.toString());
|
||||
} else {
|
||||
localStorage.removeItem(key);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -83,7 +83,6 @@ export const register = async (): Promise<Registration> => {
|
||||
// eslint has fixed this spurious warning, but we're not on the latest
|
||||
// version yet, so add a disable.
|
||||
// https://github.com/eslint/eslint/pull/18286
|
||||
/* eslint-disable no-constant-condition */
|
||||
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
|
||||
while (true) {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user