Selaa lähdekoodia

fix: trigger new profile dialog, close #356

GyDi 2 vuotta sitten
vanhempi
commit
d5037f180e
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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>