File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed
packages/clerk-js/sandbox Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff 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 => {
You can’t perform that action at this time.
0 commit comments