Skip to content

Commit 7917403

Browse files
committed
revert change
1 parent b87f162 commit 7917403

File tree

1 file changed

+11
-12
lines changed
  • packages/clerk-js/sandbox

1 file changed

+11
-12
lines changed

packages/clerk-js/sandbox/app.ts

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -239,20 +239,19 @@ function otherOptions() {
239239
});
240240

241241
const updateOtherOptions = () => {
242-
const options = Object.fromEntries(
243-
Object.entries(otherOptionsInputs).map(([key, input]) => {
244-
sessionStorage.setItem(key, input.value);
245-
246-
if (key === 'localization') {
247-
const localizationObj = l[input.value as keyof typeof l];
248-
return [key, localizationObj];
249-
}
242+
void Clerk.__unstable__updateProps({
243+
options: Object.fromEntries(
244+
Object.entries(otherOptionsInputs).map(([key, input]) => {
245+
sessionStorage.setItem(key, input.value);
250246

251-
return [key, input.value];
252-
}),
253-
);
247+
if (key === 'localization') {
248+
return [key, l[input.value as keyof typeof l]];
249+
}
254250

255-
void Clerk.__unstable__updateProps({ options });
251+
return [key, input.value];
252+
}),
253+
),
254+
});
256255
};
257256

258257
Object.values(otherOptionsInputs).forEach(input => {

0 commit comments

Comments
 (0)