File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change
1
+ RECOMMENDATION_ENDPOINT = http://localhost:8080/api/recommend/
2
+ FEEDBACK_ENDPOINT = http://localhost:8080/api/recommend/
Original file line number Diff line number Diff line change @@ -4,15 +4,10 @@ import habitat from 'preact-habitat'
4
4
import RecommendedStocksWidget from "./components/recommended-stocks" ;
5
5
const { render } = habitat ( RecommendedStocksWidget ) ;
6
6
7
- const props = {
8
- "user" : 12345678 ,
9
- "portfolio" : 87654321
10
- } ;
11
-
12
7
function renderStockRecommendation ( root_elem , user_id , portfolio_id ) {
13
8
// Set properties
14
- root_elem . dataset . propUser = props . user ;
15
- root_elem . dataset . propPortfolio = props . portfolio ;
9
+ root_elem . dataset . propUser = user_id ;
10
+ root_elem . dataset . propPortfolio = portfolio_id ;
16
11
render ( {
17
12
selector : `#${ root_elem . id } `
18
13
} ) ;
You can’t perform that action at this time.
0 commit comments