Skip to content

Commit

Permalink
bump material version (#2497)
Browse files Browse the repository at this point in the history
  • Loading branch information
agalin920 authored Feb 20, 2024
1 parent c68f1bd commit a69d5c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@tinymce/tinymce-react": "^4.3.0",
"@welldone-software/why-did-you-render": "^6.1.1",
"@zesty-io/core": "1.10.0",
"@zesty-io/material": "^0.12.0",
"@zesty-io/material": "^0.12.1",
"chart.js": "^3.8.0",
"chartjs-adapter-moment": "^1.0.1",
"chartjs-plugin-datalabels": "^2.0.0",
Expand Down
9 changes: 1 addition & 8 deletions src/shell/components/login/Login.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ export default connect((state) => {
const [twoFactor, setTwoFactor] = useState(false);
const [error, setError] = useState("");
const [isAuthenticated, setIsAuthenticated] = useState(false);
const [ssoError, setSSOError] = useState("");
const [showPassword, setShowPassword] = useState(false);

const handleLogin = (evt) => {
Expand Down Expand Up @@ -86,12 +85,6 @@ export default connect((state) => {
}
}, [isAuthenticated]);

useEffect(() => {
if (ssoError) {
setError(ssoError);
}
}, [ssoError]);

return (
<Paper
elevation={0}
Expand Down Expand Up @@ -176,7 +169,7 @@ export default connect((state) => {
setIsAuthenticated(true);
}}
onError={(err) => {
setSSOError(err);
setError(err);
}}
>
<SSOButton service="google" />
Expand Down

0 comments on commit a69d5c1

Please sign in to comment.