Skip to content

Commit 3d91665

Browse files
committed
Fix effect
1 parent 27da9c1 commit 3d91665

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/models/CounterModel.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class CounterModel extends Model<Data> {
1010
});
1111

1212
reset = this.action((state) => {
13-
if (this.data.amount !== 0) {
13+
if (state.amount !== 0) {
1414
state.amount = 0;
1515
}
1616
});

0 commit comments

Comments
 (0)