aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/RecipePreviewsStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-02-25 16:58:42 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-02-25 16:58:42 +0100
commitb55ee4d97493f66584f2da0b2f5bb43dcfe25fc4 (patch)
tree6b6701cb37e024648b41cc9a6c4174eda35487f9 /src/stores/RecipePreviewsStore.js
parentremove ping (diff)
downloadferdium-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.js3
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 @@
1import { action, computed, observable } from 'mobx'; 1import { action, computed, observable } from 'mobx';
2import { debounce } from 'lodash'; 2import { debounce } from 'lodash';
3import ms from 'ms';
3 4
4import Store from './lib/Store'; 5import Store from './lib/Store';
5import CachedRequest from './lib/CachedRequest'; 6import 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}