Skip to content

Commit

Permalink
fix(coral): Copy fix
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Anderson <[email protected]>
  • Loading branch information
Mathieu Anderson committed Nov 23, 2023
1 parent 7a17585 commit 5d263ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,8 @@ describe("useMessagesFilters.tsx", () => {
expect(isValid).toBe(false);

expect(result.current.filterErrors).toStrictEqual({
customOffsetFilters: "Max offset: 100",
customOffsetFilters:
"Entered value exceeds the view limit for offsets: 100",
partitionIdFilters: null,
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ function useMessagesFilters(): OffsetFilters {
getCustomOffset() === "" || getCustomOffset() === null
? "Please enter the number of recent offsets you want to view"
: Number(getCustomOffset()) > 100
? "Max offset: 100"
? "Entered value exceeds the view limit for offsets: 100"
: null;

setFilterErrors({
Expand Down Expand Up @@ -129,7 +129,7 @@ function useMessagesFilters(): OffsetFilters {
customOffset === ""
? "Please enter the number of recent offsets you want to view"
: Number(customOffset) > 100
? "Max offset: 100"
? "Entered value exceeds the view limit for offsets: 100"
: null,
}));
searchParams.set(NAMES.customOffset, customOffset);
Expand Down

0 comments on commit 5d263ec

Please sign in to comment.