Skip to content

Commit

Permalink
chore: make seed phrase warning fast in development
Browse files Browse the repository at this point in the history
  • Loading branch information
emccorson committed Mar 4, 2024
1 parent 3f196b9 commit 0bdbe94
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import clsx from "clsx";
import { useEffect, useState } from "react";
import { GoAlertFill } from "react-icons/go";

const { NODE_ENV } = process.env;
const TIMEOUT = NODE_ENV === "development" ? 50 : 1000;

type SeedPhraseWarningProps = {
onComplete: () => void;
};
Expand All @@ -21,7 +24,7 @@ export const SeedPhraseWarning = ({
if (countdown > 0) {
setCountdown((countdown) => countdown - 1);
}
}, 1000);
}, TIMEOUT);
}, [countdown]);

return (
Expand Down

0 comments on commit 0bdbe94

Please sign in to comment.