Commit 28579326 authored by hewenhao's avatar hewenhao

feat: update

parent 47ea79fb
...@@ -27,7 +27,7 @@ const Tabbar: ForwardRefRenderFunction<TabbarRef, {}> = (_, ref) => { ...@@ -27,7 +27,7 @@ const Tabbar: ForwardRefRenderFunction<TabbarRef, {}> = (_, ref) => {
} }
}) })
if (userInfo.nickName) { if (!userInfo.nickName) {
return null return null
} }
......
...@@ -19,7 +19,7 @@ const MainPage = () => { ...@@ -19,7 +19,7 @@ const MainPage = () => {
useEffect(() => { useEffect(() => {
silentLoginDeferred.getPromise().then(() => { silentLoginDeferred.getPromise().then(() => {
const userInfo = getStorage(StorageKeys.userInfo) const userInfo = getStorage(StorageKeys.userInfo)
if (!userInfo?.nickName) { if (userInfo?.nickName) {
setIsDone(true) setIsDone(true)
} }
setIsReady(true) setIsReady(true)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment