From d90ec814f5b76ec9b733ac77b3c0ea1eb5e7570e Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 26 Nov 2023 07:05:39 -0800 Subject: Fix missing driver issue (fix #1197) --- modern/src/common/components/DriverValue.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modern/src/common') 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; -- cgit v1.2.3