Skip to content

Commit

Permalink
fix: use 0 instead of empty string to fix type check
Browse files Browse the repository at this point in the history
  • Loading branch information
Makeen Sabree committed Nov 7, 2023
1 parent 4b9bb9c commit 4034df2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/victory-core/src/victory-util/axis.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ export function getTicks(props, scale: D3Scale, filterZero = false) {
const tickArray = getTickArray(props);

if (tickArray?.length === 0) {
return [""];
return [0];
}

const tickValues = tickArray ? tickArray.map((v) => v.value) : undefined;
Expand Down

0 comments on commit 4034df2

Please sign in to comment.