@rpg-engine/long-bow 0.8.123 → 0.8.126

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -30927,7 +30927,7 @@ var FriendList = function FriendList(_ref) {
30927
30927
  var _useState = React.useState(''),
30928
30928
  characterName = _useState[0],
30929
30929
  setCharacterName = _useState[1];
30930
- var _useState2 = React.useState('friends'),
30930
+ var _useState2 = React.useState(friends.length > 0 ? 'friends' : 'search'),
30931
30931
  activeTab = _useState2[0],
30932
30932
  setActiveTab = _useState2[1];
30933
30933
  React.useEffect(function () {
@@ -30991,11 +30991,11 @@ var FriendList = function FriendList(_ref) {
30991
30991
  onAccept: onAcceptRequest,
30992
30992
  onReject: onRejectRequest
30993
30993
  }));
30994
- var tabs = [{
30994
+ var tabs = [].concat(friends.length > 0 ? [{
30995
30995
  id: 'friends',
30996
30996
  title: "Friends (" + friends.length + ")",
30997
30997
  content: friendsTabContent
30998
- }, {
30998
+ }] : [], [{
30999
30999
  id: 'search',
31000
31000
  title: 'Search',
31001
31001
  content: searchTabContent
@@ -31003,7 +31003,7 @@ var FriendList = function FriendList(_ref) {
31003
31003
  id: 'requests',
31004
31004
  title: "Requests (" + friendRequests.length + ")",
31005
31005
  content: requestsTabContent
31006
- }];
31006
+ }]);
31007
31007
  return React__default.createElement(ListWrapper, null, React__default.createElement(InternalTabs, {
31008
31008
  tabs: tabs,
31009
31009
  activeTab: activeTab,