Skip to content

Commit

Permalink
fix(counter): use the right pending state for decrement
Browse files Browse the repository at this point in the history
  • Loading branch information
devCrossNet committed Jul 6, 2023
1 parent ebee48b commit caaa78b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/counter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const useCounterStore = defineStore('counter', {
} catch (e) {
this.error = e;
} finally {
this.incrementPending = false;
this.decrementPending = false;
}
},
},
Expand Down

0 comments on commit caaa78b

Please sign in to comment.