File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -56,19 +56,21 @@ async function showJoinRoomMenu() {
5656async function saveUserInfo ( ) {
5757 newNick = document . getElementById ( "displayInput" ) . value ;
5858 if ( newNick . replaceAll ( " " , "" ) != "" ) {
59- currentNick = newNick
59+ currentNick = newNick ;
6060 }
6161 selectionObj = document . getElementById ( "userIconSelection" ) ;
6262 if ( selectionObj . value != "" ) {
6363 if ( selectionObj . files [ 0 ] . size > userIconFileSizeLimit ) {
6464 console . log ( "Img too large" ) ;
6565 showError ( "Image must be less than " + ( userIconFileSizeLimit / 1024 ** 2 ) . toFixed ( 2 ) + "MiB." ) ;
66+ return ;
6667 } else {
6768 cid = await ipfs . add ( selectionObj . files [ 0 ] ) ;
6869 currentImg = cid . path ;
6970 await localforage . setItem ( "currentImg" , currentImg ) ;
7071 }
7172 }
73+ await localforage . setItem ( 'nick' , currentNick ) ;
7274
7375 publishProfile ( ) ;
7476 updatePersonalNickDisplay ( ) ;
You can’t perform that action at this time.
0 commit comments