Skip to content

Commit 2ae3fb6

Browse files
fix: build errors
1 parent 30ba8e1 commit 2ae3fb6

1 file changed

Lines changed: 28 additions & 6 deletions

File tree

src/components/Openings/OpeningDrillAnalysis.tsx

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,20 @@ export const OpeningDrillAnalysis: React.FC<Props> = ({
157157
}
158158
boardDescription={
159159
analysisEnabled
160-
? analysisController.boardDescription ||
161-
'Analyzing position...'
162-
: 'Analysis is disabled. Enable analysis to see detailed move evaluations and recommendations.'
160+
? analysisController.boardDescription || {
161+
segments: [
162+
{ type: 'text', content: 'Analyzing position...' },
163+
],
164+
}
165+
: {
166+
segments: [
167+
{
168+
type: 'text',
169+
content:
170+
'Analysis is disabled. Enable analysis to see detailed move evaluations and recommendations.',
171+
},
172+
],
173+
}
163174
}
164175
/>
165176
</div>
@@ -259,9 +270,20 @@ export const OpeningDrillAnalysis: React.FC<Props> = ({
259270
}
260271
boardDescription={
261272
analysisEnabled
262-
? analysisController.boardDescription ||
263-
'Analyzing position...'
264-
: 'Analysis is disabled. Enable analysis to see detailed move evaluations and recommendations.'
273+
? analysisController.boardDescription || {
274+
segments: [
275+
{ type: 'text', content: 'Analyzing position...' },
276+
],
277+
}
278+
: {
279+
segments: [
280+
{
281+
type: 'text',
282+
content:
283+
'Analysis is disabled. Enable analysis to see detailed move evaluations and recommendations.',
284+
},
285+
],
286+
}
265287
}
266288
/>
267289
</div>

0 commit comments

Comments
 (0)