Skip to content

Commit

Permalink
fix: await unflip
Browse files Browse the repository at this point in the history
  • Loading branch information
darlanalves authored Aug 24, 2023
1 parent 138566e commit edc22fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ const resetList = () => {
setFlashCards(getRandomPairs(pairs.value));
};
const nextCard = () => {
const nextCard = async () => {
await unflip();
setCurrentCard((unref(currentCard) + 1) % unref(flashcards).length);
};
const prevCard = () => {
const prevCard = async () => {
await unflip();
setCurrentCard(
(unref(currentCard) > 0
Expand Down

0 comments on commit edc22fa

Please sign in to comment.