Skip to content

Commit 51d965f

Browse files
authored
Merge pull request #21 from hkulur/master
Issue 17 - add more delay to success notification
2 parents 9ac2896 + 3f60dcf commit 51d965f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

store/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@ export const actions = {
6161
.then(res => {
6262
if (res.status === 200) {
6363
commit("updateCartUI", "success")
64-
setTimeout(() => commit("clearCart"), 3000)
64+
setTimeout(() => commit("clearCart"), 5000)
6565
} else {
6666
commit("updateCartUI", "failure")
6767
// allow them to try again
68-
setTimeout(() => commit("updateCartUI", "idle"), 3000)
68+
setTimeout(() => commit("updateCartUI", "idle"), 5000)
6969
}
7070

7171
console.log(JSON.stringify(res, null, 2))

0 commit comments

Comments
 (0)