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 ad9bd1f commit 7a17585
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ describe("useMessagesFilters.tsx", () => {
expect(isValid).toBe(false);

expect(result.current.filterErrors).toStrictEqual({
customOffsetFilters: "Please enter an offset",
customOffsetFilters:
"Please enter the number of recent offsets you want to view",
partitionIdFilters: null,
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function useMessagesFilters(): OffsetFilters {
: null;
const customOffsetFiltersError =
getCustomOffset() === "" || getCustomOffset() === null
? "Please enter an offset"
? "Please enter the number of recent offsets you want to view"
: Number(getCustomOffset()) > 100
? "Max offset: 100"
: null;
Expand Down Expand Up @@ -117,7 +117,8 @@ function useMessagesFilters(): OffsetFilters {
if (customOffset.length === 0) {
setFilterErrors((prev) => ({
...prev,
customOffsetFilters: "Please enter an offset",
customOffsetFilters:
"Please enter the number of recent offsets you want to view",
}));
deleteCustomOffset();
return;
Expand All @@ -126,7 +127,7 @@ function useMessagesFilters(): OffsetFilters {
...prev,
customOffsetFilters:
customOffset === ""
? "Please enter an offset"
? "Please enter the number of recent offsets you want to view"
: Number(customOffset) > 100
? "Max offset: 100"
: null,
Expand Down

0 comments on commit 7a17585

Please sign in to comment.