diff --git a/backend/go-app/go.mod b/backend/go-app/go.mod index abb8c18e..d6e77d3c 100755 --- a/backend/go-app/go.mod +++ b/backend/go-app/go.mod @@ -19,7 +19,7 @@ require ( github.com/gorilla/mux v1.8.0 github.com/h2non/filetype v1.1.3 github.com/satori/go.uuid v1.2.0 - github.com/shuffle/shuffle-shared v0.4.47 + github.com/shuffle/shuffle-shared v0.4.48 golang.org/x/crypto v0.9.0 google.golang.org/api v0.125.0 google.golang.org/appengine v1.6.7 diff --git a/frontend/src/components/Priority.jsx b/frontend/src/components/Priority.jsx index 4559246a..5e1c1943 100644 --- a/frontend/src/components/Priority.jsx +++ b/frontend/src/components/Priority.jsx @@ -21,8 +21,7 @@ import { //import { useAlert const Priority = (props) => { - const { globalUrl, userdata, serverside, priority, checkLogin, setAdminTab, setCurTab, } = props; - + const { globalUrl, userdata, serverside, priority, checkLogin, setAdminTab, setCurTab, } = props; const isCloud = window.location.host === "localhost:3002" || window.location.host === "shuffler.io"; let navigate = useNavigate(); @@ -52,15 +51,15 @@ const Priority = (props) => { }) .then((responseJson) => { if (responseJson.success === true) { - if (checkLogin !== undefined) { - checkLogin() - } + if (checkLogin !== undefined) { + checkLogin() + } } else { if (responseJson.success === false && responseJson.reason !== undefined) { - toast("Failed change recommendation: ", responseJson.reason) + toast("Failed change recommendation: ", responseJson.reason) } else { - toast("Failed change recommendation"); - } + toast("Failed change recommendation"); + } } }) .catch((error) => { @@ -70,7 +69,7 @@ const Priority = (props) => { return ( -
+
{priority.type === "usecase" || priority.type == "apps" ? : null}