Skip to content

Commit

Permalink
fix: LTLが無効なサーバーのアカウントでタブ設定がエラー表示になることがあるのを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk committed Dec 25, 2024
1 parent b01c83c commit 63804ba
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,10 @@ class TabSettingsPage extends HookConsumerWidget {
final selectedTabType = useState<TabType?>(
initialTabSetting != null && isTabTypeAvailable(initialTabSetting.tabType)
? initialTabSetting.tabType
: TabType.localTimeline,
: (selectedAccount.value != null &&
selectedAccount.value!.i.policies.ltlAvailable
? TabType.localTimeline
: TabType.homeTimeline),
);

final selectedRole = useState<RolesListResponse?>(null);
Expand Down

0 comments on commit 63804ba

Please sign in to comment.