Skip to content

Commit

Permalink
Fix missing driver issue (fix #1197)
Browse files Browse the repository at this point in the history
  • Loading branch information
tananaev committed Nov 26, 2023
1 parent 43e6573 commit d90ec81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modern/src/common/components/DriverValue.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit d90ec81

Please sign in to comment.