diff options
Diffstat (limited to 'modern')
-rw-r--r-- | modern/src/common/components/DriverValue.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modern/src/common/components/DriverValue.js b/modern/src/common/components/DriverValue.js index 0969ca20..6148b418 100644 --- a/modern/src/common/components/DriverValue.js +++ b/modern/src/common/components/DriverValue.js @@ -3,7 +3,7 @@ import { useSelector } from 'react-redux'; const DriverValue = ({ driverUniqueId }) => { const driver = useSelector((state) => state.drivers.items[driverUniqueId]); - return driver.name; + return driver?.name || driverUniqueId; }; export default DriverValue; |