File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -422,19 +422,20 @@ export default function messageListener(packet: ToClientPacket){
422
422
if ( GAME_MANAGER . state . stateType === "game" && GAME_MANAGER . state . clientState . type === "player" ) {
423
423
GAME_MANAGER . state . clientState . notes = packet . notes ;
424
424
425
- if ( GAME_MANAGER . state . clientState . notes . length === 0 ) {
426
- const myIndex = GAME_MANAGER . state . clientState . myIndex ;
427
- const myRoleKey = `role.${ GAME_MANAGER . state . clientState . roleState . type } .name` ;
425
+ // old default notes
426
+ // if(GAME_MANAGER.state.clientState.notes.length === 0){
427
+ // const myIndex = GAME_MANAGER.state.clientState.myIndex;
428
+ // const myRoleKey = `role.${GAME_MANAGER.state.clientState.roleState.type}.name`;
428
429
429
- GAME_MANAGER . sendSaveNotesPacket ( [
430
- "Claims\n" +
431
- GAME_MANAGER . state . players
432
- . map ( player =>
433
- `@${ player . index + 1 } - ${ player . index === myIndex ? translate ( myRoleKey ) : '' } \n`
434
- )
435
- . join ( '' )
436
- ] ) ;
437
- }
430
+ // GAME_MANAGER.sendSaveNotesPacket([
431
+ // "Claims\n" +
432
+ // GAME_MANAGER.state.players
433
+ // .map(player =>
434
+ // `@${player.index + 1} - ${player.index === myIndex ? translate(myRoleKey) : ''}\n`
435
+ // )
436
+ // .join('')
437
+ // ]);
438
+ // }
438
439
}
439
440
break ;
440
441
case "yourCrossedOutOutlines" :
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ export default function WillMenu(): ReactElement {
56
56
GAME_MANAGER . sendSaveWillPacket ( text ) ;
57
57
} }
58
58
/>
59
- { notes . map ( ( note , i ) => {
59
+ { ( notes . length === 0 ? [ "" ] : notes ) . map ( ( note , i ) => {
60
60
const title = note . split ( '\n' ) [ 0 ] || translate ( "menu.will.notes" ) ;
61
61
return < TextDropdownArea
62
62
key = { title + i }
You can’t perform that action at this time.
0 commit comments