diff options
author | 2021-02-17 09:30:47 +0300 | |
---|---|---|
committer | 2021-02-17 09:30:47 +0300 | |
commit | fba316f235a3871743427f37b3bbd07bea6d77bd (patch) | |
tree | af8a53d2677b4b135463899fb271ed127384440e /src/pages | |
parent | Cleans Up OAuth Error Logging (diff) |
Removes Path From Auth
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to 'src/pages')
-rw-r--r-- | src/pages/FormPage.tsx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pages/FormPage.tsx b/src/pages/FormPage.tsx index 4237e86..4e13b8a 100644 --- a/src/pages/FormPage.tsx +++ b/src/pages/FormPage.tsx @@ -27,8 +27,6 @@ interface NavigationProps { } class Navigation extends React.Component<NavigationProps> { - PAGE_PATH = "/form" - containerStyles = css` margin: auto; width: 50%; @@ -97,9 +95,9 @@ class Navigation extends React.Component<NavigationProps> { let submit = null; if (this.props.form_state) { - if (this.props.scopes.includes(OAuthScopes.Identify) && !checkScopes(this.props.scopes, this.PAGE_PATH)) { + if (this.props.scopes.includes(OAuthScopes.Identify) && !checkScopes(this.props.scopes)) { // Render OAuth button if login is required, and the scopes needed are not available - submit = <OAuth2Button path={this.PAGE_PATH} scopes={this.props.scopes} rerender={() => this.setState({"logged_in": true})}/>; + submit = <OAuth2Button scopes={this.props.scopes} rerender={() => this.setState({"logged_in": true})}/>; } else { submit = <button form="form" type="submit">Submit</button>; } |