Skip to content

Commit 46f4f27

Browse files
committed
hotfix: userInfo defaults to empty object if undefined
1 parent 3bb0d02 commit 46f4f27

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/firefly/js/ui/Banner.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ Banner.propTypes= {
5757

5858

5959
const UserInfo= memo(() => {
60-
const [userInfo]= useStoreConnector(
60+
const [userInfo={}]= useStoreConnector(
6161
(prev) => {
6262
const userInfo= getUserInfo();
63-
if (!prev) return userInfo || {};
63+
if (!prev) return userInfo;
6464
return shallowequal(prev,userInfo) ? prev : userInfo;
6565
});
6666

0 commit comments

Comments
 (0)