Browse Source

fix: service ref error

GyDi 2 years ago
parent
commit
020bd129fb
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/components/setting/setting-system.tsx

+ 2 - 2
src/components/setting/setting-system.tsx

@@ -74,7 +74,7 @@ const SettingSystem = ({ onError }: Props) => {
               <PrivacyTipRounded
                 fontSize="small"
                 style={{ cursor: "pointer", opacity: 0.75 }}
-                onClick={() => sysproxyRef.current?.open()}
+                onClick={() => serviceRef.current?.open()}
               />
             )
           }
@@ -95,7 +95,7 @@ const SettingSystem = ({ onError }: Props) => {
               color="inherit"
               size="small"
               sx={{ my: "2px" }}
-              onClick={() => sysproxyRef.current?.open()}
+              onClick={() => serviceRef.current?.open()}
             >
               <ArrowForward />
             </IconButton>