diff --git a/client/src/game/messageListener.tsx b/client/src/game/messageListener.tsx index 4ed0ab425..cd64bcf4d 100644 --- a/client/src/game/messageListener.tsx +++ b/client/src/game/messageListener.tsx @@ -422,19 +422,20 @@ export default function messageListener(packet: ToClientPacket){ if(GAME_MANAGER.state.stateType === "game" && GAME_MANAGER.state.clientState.type === "player"){ GAME_MANAGER.state.clientState.notes = packet.notes; - if(GAME_MANAGER.state.clientState.notes.length === 0){ - const myIndex = GAME_MANAGER.state.clientState.myIndex; - const myRoleKey = `role.${GAME_MANAGER.state.clientState.roleState.type}.name`; + // old default notes + // if(GAME_MANAGER.state.clientState.notes.length === 0){ + // const myIndex = GAME_MANAGER.state.clientState.myIndex; + // const myRoleKey = `role.${GAME_MANAGER.state.clientState.roleState.type}.name`; - GAME_MANAGER.sendSaveNotesPacket([ - "Claims\n" + - GAME_MANAGER.state.players - .map(player => - `@${player.index + 1} - ${player.index === myIndex ? translate(myRoleKey) : ''}\n` - ) - .join('') - ]); - } + // GAME_MANAGER.sendSaveNotesPacket([ + // "Claims\n" + + // GAME_MANAGER.state.players + // .map(player => + // `@${player.index + 1} - ${player.index === myIndex ? translate(myRoleKey) : ''}\n` + // ) + // .join('') + // ]); + // } } break; case "yourCrossedOutOutlines": diff --git a/client/src/menu/game/gameScreenContent/WillMenu.tsx b/client/src/menu/game/gameScreenContent/WillMenu.tsx index dcd5d0990..c7e9d825b 100644 --- a/client/src/menu/game/gameScreenContent/WillMenu.tsx +++ b/client/src/menu/game/gameScreenContent/WillMenu.tsx @@ -56,7 +56,7 @@ export default function WillMenu(): ReactElement { GAME_MANAGER.sendSaveWillPacket(text); }} /> - {notes.map((note, i) => { + {(notes.length === 0 ? [""] : notes).map((note, i) => { const title = note.split('\n')[0] || translate("menu.will.notes"); return