Browse Source

fix: trigger new profile dialog, close #356

GyDi 2 năm trước cách đây
mục cha
commit
d5037f180e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/pages/profiles.tsx

+ 1 - 1
src/pages/profiles.tsx

@@ -230,7 +230,7 @@ const ProfilePage = () => {
         <Button
           variant="contained"
           size="small"
-          onClick={viewerRef.current?.create}
+          onClick={() => viewerRef.current?.create()}
         >
           {t("New")}
         </Button>