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 8d0712d
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];
if (value) {
params.set(MessagesFilterKeys[key], value);
}
};

Expand Down

0 comments on commit 8d0712d

Please sign in to comment.