From befbcdfa8282f6ff79232a22b0b98157a4981da6 Mon Sep 17 00:00:00 2001 From: Faisal Amir Date: Mon, 13 Nov 2023 16:37:13 +0700 Subject: [PATCH] fix detech apple silicon --- docs/src/components/Elements/dropdown.js | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/docs/src/components/Elements/dropdown.js b/docs/src/components/Elements/dropdown.js index 42bd2ff54..055949546 100644 --- a/docs/src/components/Elements/dropdown.js +++ b/docs/src/components/Elements/dropdown.js @@ -66,14 +66,20 @@ export default function Dropdown() { } else if (userAgent.includes("Linux")) { // linux user setDefaultSystem(systems[3]); - } else if (userAgent.includes("Mac OS")) { - if (arc && arc.architecture === "arm") { - // mac m1, m2 - setDefaultSystem(systems[0]); - } else { - // mac user intel - setDefaultSystem(systems[1]); - } + } else if ( + userAgent.includes("Mac OS") && + arc && + arc.architecture === "arm" + ) { + // mac m1, m2 + setDefaultSystem(systems[0]); + } else if ( + userAgent.includes("Mac OS") && + arc && + arc.architecture !== "arm" + ) { + // mac intel + setDefaultSystem(systems[1]); } else { setDefaultSystem(systems[0]); }