Skip to content

Commit

Permalink
fix: remove async from mutation and fix consistency in tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
proofoftom committed Mar 22, 2020
1 parent fea83d9 commit 3894f01
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/store/counter/mutations.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import { counter } from "./loadCounter";

export async function updateCount(state: any) {
state.count = await counter.count();
export function updateCount(state: any) {
counter.count().then(count => {
state.count = count;
});
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,6 @@
"./buidler.config.ts",
"./node_modules/@nomiclabs/buidler-ethers/src/type-extensions.d.ts",
"./node_modules/@nomiclabs/buidler-waffle/src/type-extensions.d.ts",
"node_modules/buidler-typechain/src/type-extensions.d.ts"
"./node_modules/buidler-typechain/src/type-extensions.d.ts"
]
}

0 comments on commit 3894f01

Please sign in to comment.