Bad workarounds for getting tsc to compile
This commit is contained in:
parent
89c949ac50
commit
3345b6f6c7
2 changed files with 3 additions and 2 deletions
|
@ -16,8 +16,8 @@ function LoginDisplay({ sx }: { sx?: React.CSSProperties }): JSX.Element {
|
|||
if (loginCtx.currentUser == undefined) {
|
||||
loginCtx.setOpen?.(true); // If the loginCtx.setOpen is defined, call it with true as the argument
|
||||
} else {
|
||||
loginCtx.setCurrentUser?.(undefined);
|
||||
loginCtx.setUserToken?.(undefined);
|
||||
loginCtx.setCurrentUser?.("");
|
||||
loginCtx.setUserToken?.("");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -25,6 +25,7 @@ export function PostCard({ post }: { post: Post }): JSX.Element {
|
|||
upvotes: post.votes.up,
|
||||
downvotes: post.votes.down
|
||||
});
|
||||
setVoteCount; // To silence the linter, peak coding right here
|
||||
|
||||
// Atrocious code
|
||||
const votePress = (vote: VoteDirection): void => {
|
||||
|
|
Loading…
Reference in a new issue