Skip to content

Commit

Permalink
Merge pull request #162 from alley-rs/dev
Browse files Browse the repository at this point in the history
fix(Alert): correct logic for closeSpeed default value
  • Loading branch information
thep0y authored Oct 26, 2024
2 parents f393378 + 4527d28 commit 99898e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/components/alert/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const Alert = (props: AlertProps) => {

const style = () => ({
...merged.style,
[`--${baseClassName}-close-speed`]: `${merged.closeSpeed}ms` ?? "500ms",
[`--${baseClassName}-close-speed`]: `${merged.closeSpeed ?? 500}ms`,
});

const handleClose = (
Expand Down

0 comments on commit 99898e0

Please sign in to comment.