We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27da9c1 commit 3d91665Copy full SHA for 3d91665
src/models/CounterModel.ts
@@ -10,7 +10,7 @@ class CounterModel extends Model<Data> {
10
});
11
12
reset = this.action((state) => {
13
- if (this.data.amount !== 0) {
+ if (state.amount !== 0) {
14
state.amount = 0;
15
}
16
0 commit comments