From 818880182920fed0043a170967bb3aae4ce48ea4 Mon Sep 17 00:00:00 2001
From: Chad Derya <scd@onlinefuels.com>
Date: Wed, 4 Sep 2019 12:48:17 +0100
Subject: [PATCH] Display and create fuels for de and uk

---
 src/api/product.js          | 2 +-
 src/views/products/list.vue | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/api/product.js b/src/api/product.js
index 8840ce04..b4a33118 100644
--- a/src/api/product.js
+++ b/src/api/product.js
@@ -30,7 +30,7 @@ function __dataToDTO(data) {
     'lpt': Number(data.lpt),
     'duty': Number(data.duty),
     'type': 'SPOT',
-    'platform': data.platform || 'OLFDE',
+    'platform': store.state.platform,
     'meta': data.meta,
     'status': data.status
   }
diff --git a/src/views/products/list.vue b/src/views/products/list.vue
index 16b3830b..e752eeb7 100644
--- a/src/views/products/list.vue
+++ b/src/views/products/list.vue
@@ -52,7 +52,7 @@ export default {
     }
   },
   created() {
-    this.listQuery.platform = 'OLFDE'
+    this.listQuery.platform = this.$store.state.settings.platform
 
     this.getList()
   },