aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-02-16 23:48:25 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-02-16 23:48:25 +0300
commit020b794ef1c1b3ba67711e19b0baee7687c92c96 (patch)
treec732ba720ed53eb541aac338c67e25c7d59e7943
parentAdds Error Handler For OAuth Button (diff)
Cleans Up Error Display
Signed-off-by: Hassan Abouelela <[email protected]>
-rw-r--r--src/components/OAuth2Button.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/OAuth2Button.tsx b/src/components/OAuth2Button.tsx
index 61bcd99..b084571 100644
--- a/src/components/OAuth2Button.tsx
+++ b/src/components/OAuth2Button.tsx
@@ -36,7 +36,11 @@ const errorStyles = css`
text-align: center;
white-space: normal;
box-sizing: border-box;
- padding: 0 5rem;
+
+ padding: 0 15rem;
+ @media (max-width: 750px) {
+ padding: 0 5rem;
+ }
color: red;
margin-top: 2.5rem;
@@ -52,7 +56,7 @@ async function login(props: OAuth2ButtonProps, errorDialog: React.RefObject<HTML
}
// Propagate to sentry
- const error = reason.Error.toJSON();
+ const error = reason.Error;
error["Custom Error Message"] = reason.Message;
// Filter Discord code