summaryrefslogtreecommitdiff
path: root/frontend
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2020-07-16 22:04:35 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2020-08-24 19:48:06 +0200
commit5d528f6b1902d372eb2ef594bc96712ad74ac361 (patch)
treecc17c4b72724aba6a1038412f891c2d0e506d6a8 /frontend
parenta4ae44e7f5bbfb293cdce256da3c40f927605ac9 (diff)
Add prototype of web experiment runner
This change adds a bridge between the frontend and the new simulator implementation via MongoDB.
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/shapes/index.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/frontend/src/shapes/index.js b/frontend/src/shapes/index.js
index 32914f25..8296055a 100644
--- a/frontend/src/shapes/index.js
+++ b/frontend/src/shapes/index.js
@@ -111,7 +111,9 @@ Shapes.Scenario = PropTypes.shape({
_id: PropTypes.string.isRequired,
portfolioId: PropTypes.string.isRequired,
name: PropTypes.string.isRequired,
- simulationState: PropTypes.string.isRequired,
+ simulation: PropTypes.shape({
+ state: PropTypes.string.isRequired,
+ }).isRequired,
trace: PropTypes.shape({
traceId: PropTypes.string.isRequired,
trace: Shapes.Trace,