mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-13 17:07:27 +02:00
fix: remove duplicate zapTitle condition in DynamicWindowTitle
Removed duplicate zapTitle if-else branch at line 870 that was causing lint error. The first zapTitle condition at line 803 handles all cases, making the second occurrence unreachable.
This commit is contained in:
@@ -867,10 +867,6 @@ function useDynamicTitle(window: WindowInstance): WindowTitleData {
|
||||
title = chatTitle;
|
||||
icon = getCommandIcon("chat");
|
||||
tooltip = rawCommand;
|
||||
} else if (zapTitle) {
|
||||
title = zapTitle;
|
||||
icon = getCommandIcon("zap");
|
||||
tooltip = rawCommand;
|
||||
} else {
|
||||
title = staticTitle || appId.toUpperCase();
|
||||
tooltip = rawCommand;
|
||||
|
||||
Reference in New Issue
Block a user