Coots commited on
Commit
842b288
·
verified ·
1 Parent(s): 892f193

Update chat.js

Browse files
Files changed (1) hide show
  1. chat.js +3 -1
chat.js CHANGED
@@ -131,6 +131,8 @@ function calculateTiles() {
131
 
132
  state.step = 'complete';
133
 
 
 
134
  fetch('/recommend', {
135
  method: 'POST',
136
  headers: { 'Content-Type': 'application/json' },
@@ -138,7 +140,7 @@ function calculateTiles() {
138
  tile_type: tileType,
139
  coverage: tileArea,
140
  area: area,
141
- preferred_sizes: [`${Math.round(tileLength * 300)}x${Math.round(tileWidth * 300)} MM`]
142
  })
143
  })
144
  .then(res => res.json())
 
131
 
132
  state.step = 'complete';
133
 
134
+ const sizeLabel = `${Math.round(tileLength * 304.8)}x${Math.round(tileWidth * 304.8)} MM`;
135
+
136
  fetch('/recommend', {
137
  method: 'POST',
138
  headers: { 'Content-Type': 'application/json' },
 
140
  tile_type: tileType,
141
  coverage: tileArea,
142
  area: area,
143
+ preferred_sizes: [sizeLabel]
144
  })
145
  })
146
  .then(res => res.json())