File tree Expand file tree Collapse file tree 3 files changed +4
-7
lines changed
Expand file tree Collapse file tree 3 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -84,17 +84,14 @@ export function Status({ id }: { id: number }) {
8484 )
8585 . map ( ( c ) => c . id )
8686 . uniq ( )
87- . thru (
88- ( ids ) =>
89- `${ ids . length > 1 ? "agents" : "agent" } ${ ids . join ( ", " ) } `
90- )
87+ . join ( ", " )
9188 . value ( ) } `,
9289 }
9390 : { color : colors . success , label : "Active" } ;
9491 return (
9592 < div className = { cls } >
9693 < h4 >
97- Agent { id } { " " }
94+ Robot { id } { " " }
9895 < span >
9996 < Dot color = { status . color } /> { status . label }
10097 </ span >
Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ export const useAgentInfo = (i: number) => {
134134 const previous = usePreviousDefined ( v1 || initial ) ;
135135 return ! v1
136136 ? {
137- value : { ...previous . value , state : "unknown" } ,
137+ value : { ...previous . value ! , state : "unknown" } ,
138138 isPrevious : true ,
139139 }
140140 : previous ;
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ export function Inputs() {
9090 ? `Simulating (Step ${ length } )`
9191 : contents ?. count
9292 ? `Simulate (${ contents . count } ${
93- contents . count === 1 ? "agent " : "agents "
93+ contents . count === 1 ? "robot " : "robots "
9494 } )`
9595 : "Simulate" ,
9696 } ,
You can’t perform that action at this time.
0 commit comments