File tree Expand file tree Collapse file tree
packages/component/src/Transcript/LiveRegion Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,7 +37,9 @@ const LiveRegionSendSending = () => {
3737 const keys = new Set < string > ( ) ;
3838
3939 for ( const [ key , sendStatus ] of sendStatusByActivityKey ) {
40- if ( sendStatus !== SENDING ) continue ;
40+ if ( sendStatus !== SENDING ) {
41+ continue ;
42+ }
4143
4244 if ( ! isPresentational ( getActivityByKey ( key ) ) ) {
4345 keys . add ( key ) ;
@@ -60,15 +62,21 @@ const LiveRegionSendSending = () => {
6062 }
6163 }
6264
63- if ( ! sendingKeys . size ) return ;
65+ if ( ! sendingKeys . size ) {
66+ return ;
67+ }
6468
6569 const timeouts : ReturnType < typeof setTimeout > [ ] = [ ] ;
6670
6771 for ( const key of sendingKeys ) {
68- if ( announcedKeysRef . current . has ( key ) ) continue ;
72+ if ( announcedKeysRef . current . has ( key ) ) {
73+ continue ;
74+ }
6975
7076 const timeout = setTimeout ( ( ) => {
71- if ( ! sendingKeys . has ( key ) ) return ;
77+ if ( ! sendingKeys . has ( key ) ) {
78+ return ;
79+ }
7280
7381 announcedKeysRef . current . add ( key ) ;
7482 setTick ( t => t + 1 ) ;
You can’t perform that action at this time.
0 commit comments