Skip to content

Commit

Permalink
tsc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nilumilak committed Jul 15, 2024
1 parent 1052c3d commit 1198bf6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frontend/src/lib/hooks/useMessagesFiltersFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,9 @@ export function useMessagesFiltersFields(topicName: string) {
const setTopicMessageFiltersFromLocalStorage = (
key: keyof MessagesFilterFieldsType
) => {
if (topicMessagesFilters[key]) {
params.set(MessagesFilterKeys[key], topicMessagesFilters[key]);
const value = topicMessagesFilters[key]

Check warning on line 53 in frontend/src/lib/hooks/useMessagesFiltersFields.ts

View workflow job for this annotation

GitHub Actions / build / build-and-test

Insert `;`
if (value) {
params.set(MessagesFilterKeys[key], value);
}
};

Expand Down

0 comments on commit 1198bf6

Please sign in to comment.