remove unused vars/aliases and fix bug where first authentication doesn't decrypt link
This commit is contained in:
@@ -75,6 +75,10 @@ const AuthPage = (props: AuthPageProps) => {
|
||||
alert("Could not find intended link in URL");
|
||||
return null;
|
||||
}
|
||||
if (!user) {
|
||||
// no need to retrieve link if they weren't authenticated
|
||||
return null;
|
||||
}
|
||||
|
||||
const linkResponse = await fetch(`/links/${linkId}`);
|
||||
let linkData: IntendedLink | null;
|
||||
|
@@ -95,6 +95,7 @@ const ForPage = (props: ForPageProps) => {
|
||||
value={serviceSelect}
|
||||
>
|
||||
<option value="github">Github</option>
|
||||
<option value="google">Gmail</option>
|
||||
</Select>
|
||||
<Spacer space="3rem" />
|
||||
<SpaceBetweenContainer>
|
||||
|
Reference in New Issue
Block a user