Skip to content

Commit

Permalink
Bugfix/fix typo and 0 to constant (#184)
Browse files Browse the repository at this point in the history
* Fix typo, thanks to @BlueHeisenberg and fix missing "0" in default constants

* Fix typo, thanks to @BlueHeisenberg and fix missing "0" in default constants
  • Loading branch information
davidarroyo1234 authored Aug 7, 2024
1 parent d27f1cd commit c8e7dff
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/SettingMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const SettingMenu = ({
type="number"
id="timeAfterFiveUnfollows"
name="timeAfterFiveUnfollows"
min={7000}
min={70000}
max={999999}
value={timeToWaitAfterFiveUnfollows}
onChange={(e) => handleInputChange(e, setTimeToWaitAfterFiveUnfollows)}
Expand Down
2 changes: 1 addition & 1 deletion src/constants/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export const WHITELISTED_RESULTS_STORAGE_KEY = 'iu_whitelisted-results';
export const DEFAULT_TIME_BETWEEN_SEARCH_CYCLES = 1000;
export const DEFAULT_TIME_TO_WAIT_AFTER_FIVE_SEARCH_CYCLES = 10000;
export const DEFAULT_TIME_BETWEEN_UNFOLLOWS = 4000;
export const DEFAULT_TIME_TO_WAIT_AFTER_FIVE_UNFOLLOWS = 30000;
export const DEFAULT_TIME_TO_WAIT_AFTER_FIVE_UNFOLLOWS = 300000;
4 changes: 2 additions & 2 deletions src/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ function App() {
scrollCycle++;
if (scrollCycle > 6) {
scrollCycle = 0;
setToast({ show: true, text: `Sleeping ${timings.timeToWaitAfterFiveSearchCycles / 1000 } secs to prevent getting temp blocked` });
setToast({ show: true, text: `Sleeping ${timings.timeToWaitAfterFiveSearchCycles / 1000 } seconds to prevent getting temp blocked` });
await sleep(timings.timeToWaitAfterFiveSearchCycles);
}
setToast({ show: false });
Expand Down Expand Up @@ -351,7 +351,7 @@ function App() {
await sleep(Math.floor(Math.random() * (timings.timeBetweenUnfollows * 1.2 - timings.timeBetweenUnfollows)) + timings.timeBetweenUnfollows);

if (counter % 5 === 0) {
setToast({ show: true, text: `Sleeping ${timings.timeToWaitAfterFiveUnfollows / 1000 } minutes to prevent getting temp blocked` });
setToast({ show: true, text: `Sleeping ${timings.timeToWaitAfterFiveUnfollows / 60000 } minutes to prevent getting temp blocked` });
await sleep(timings.timeToWaitAfterFiveUnfollows);
}
setToast({ show: false });
Expand Down

0 comments on commit c8e7dff

Please sign in to comment.