diff options
author | Stefan Malzner <stefan@adlk.io> | 2019-02-25 16:58:42 +0100 |
---|---|---|
committer | Stefan Malzner <stefan@adlk.io> | 2019-02-25 16:58:42 +0100 |
commit | b55ee4d97493f66584f2da0b2f5bb43dcfe25fc4 (patch) | |
tree | 6b6701cb37e024648b41cc9a6c4174eda35487f9 /src/stores/RecipePreviewsStore.js | |
parent | remove ping (diff) | |
download | ferdium-app-b55ee4d97493f66584f2da0b2f5bb43dcfe25fc4.tar.gz ferdium-app-b55ee4d97493f66584f2da0b2f5bb43dcfe25fc4.tar.zst ferdium-app-b55ee4d97493f66584f2da0b2f5bb43dcfe25fc4.zip |
replace ms time strings with ms module
Diffstat (limited to 'src/stores/RecipePreviewsStore.js')
-rw-r--r-- | src/stores/RecipePreviewsStore.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/stores/RecipePreviewsStore.js b/src/stores/RecipePreviewsStore.js index 10b2928e3..382820d58 100644 --- a/src/stores/RecipePreviewsStore.js +++ b/src/stores/RecipePreviewsStore.js | |||
@@ -1,5 +1,6 @@ | |||
1 | import { action, computed, observable } from 'mobx'; | 1 | import { action, computed, observable } from 'mobx'; |
2 | import { debounce } from 'lodash'; | 2 | import { debounce } from 'lodash'; |
3 | import ms from 'ms'; | ||
3 | 4 | ||
4 | import Store from './lib/Store'; | 5 | import Store from './lib/Store'; |
5 | import CachedRequest from './lib/CachedRequest'; | 6 | import CachedRequest from './lib/CachedRequest'; |
@@ -48,5 +49,5 @@ export default class RecipePreviewsStore extends Store { | |||
48 | // Helper | 49 | // Helper |
49 | _analyticsSearch = debounce((needle) => { | 50 | _analyticsSearch = debounce((needle) => { |
50 | gaEvent('Recipe', 'search', needle); | 51 | gaEvent('Recipe', 'search', needle); |
51 | }, 3000); | 52 | }, ms('3s')); |
52 | } | 53 | } |