Skip to content

Commit

Permalink
read cooldown count from settingsStore
Browse files Browse the repository at this point in the history
  • Loading branch information
metkm committed Feb 11, 2023
1 parent 6975257 commit b9c9311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/Mutuals.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ const mutuals = ref<UserObject[]>([]);
const currentUser = ref(0);
const currentPage = ref(0);
const currentCooldown = ref(6);
const currentCooldown = ref(settingsStore.friendAddDelay / 1000);
const tasks = ref<Tasks>({});
let cooldownId: NodeJS.Timeout;
const updateLists: UpdateCallback = async (checkedUser, foundMutual) => {
currentCooldown.value = 6;
currentCooldown.value = settingsStore.friendAddDelay / 1000;
clearInterval(cooldownId);
cooldownId = setInterval(() => {
Expand Down

0 comments on commit b9c9311

Please sign in to comment.