remove unused vars/aliases and fix bug where first authentication doesn't decrypt link

This commit is contained in:
2022-03-01 22:08:53 -05:00
parent 5047ee653b
commit 45bd5ba81a
8 changed files with 14 additions and 16 deletions

View File

@@ -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;

View File

@@ -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>