Todo react ts app issues with remove title

The todo react app using ts is slightly broken unless I have missed something. When adding more than 1 new todo all new ones seem to share the id so when removing it errors and stops removing anything you added to the array. Is this an issue or did I miss something?