Skip to content

Commit

Permalink
refactor(Rate): delete unnecessary code (#3092)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislol98 authored Sep 10, 2024
1 parent 8a88350 commit 7837770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rate/Rate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const Rate = React.forwardRef<HTMLDivElement, RateProps>((originalProps, ref) =>
const { classPrefix } = useConfig();
const [starValue = 0, setStarValue] = useControlled(props, 'value', onChange);

const [hoverValue = undefined, setHoverValue] = useState<number | undefined>(undefined);
const [hoverValue, setHoverValue] = useState<number | undefined>(undefined);
const displayValue = hoverValue || starValue;

const rootRef = React.useRef<HTMLUListElement>(null);
Expand Down

0 comments on commit 7837770

Please sign in to comment.