diff --git a/frontend/app/components/Onboarding/components/InstallOpenReplayTab/InstallOpenReplayTab.tsx b/frontend/app/components/Onboarding/components/InstallOpenReplayTab/InstallOpenReplayTab.tsx
index 3986ae10a..66fa8a092 100644
--- a/frontend/app/components/Onboarding/components/InstallOpenReplayTab/InstallOpenReplayTab.tsx
+++ b/frontend/app/components/Onboarding/components/InstallOpenReplayTab/InstallOpenReplayTab.tsx
@@ -19,14 +19,15 @@ interface Props extends WithOnboardingProps {
value: string;
};
setPlatform: (val: { label: string; value: string }) => void;
+ platformMap: Record
}
function InstallOpenReplayTab(props: Props) {
- const { site, platforms, platform, setPlatform } = props;
+ const { site, platforms, platform, setPlatform, platformMap } = props;
React.useEffect(() => {
if (site.platform)
- setPlatform(platforms.find(({ value }) => value === site.platform) || platforms[0]);
+ setPlatform(platforms.find(({ value }) => value === platformMap[site.platform]) || platforms[0]);
}, [site]);
return (
<>
@@ -38,7 +39,7 @@ function InstallOpenReplayTab(props: Props) {
-