Skip to content

Commit

Permalink
Merge pull request #66 from mmz-srf/noref-confirm-button-countdown-bug
Browse files Browse the repository at this point in the history
Fix: Confirm Button Countdown Bug
  • Loading branch information
EliaRitzmann authored Jun 24, 2024
2 parents 48c1f2c + 20ba30b commit f35bc49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "srf-feathers",
"version": "1.7.0",
"version": "1.7.1",
"main": "build/index.js",
"module": "build/index.esm.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/elements/ConfirmButton/ConfirmButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const ConfirmButton: React.FC<ConfirmButtonProps> = ({
icon,
}) => {
const [confirming, setConfirming] = useState(false);
const [disabledCountdown, setDisabledCountdown] = useState(3);
const [disabledCountdown, setDisabledCountdown] = useState(0);

useEffect(() => {
if (disabledCountdown > 0) {
Expand Down

0 comments on commit f35bc49

Please sign in to comment.