-
Notifications
You must be signed in to change notification settings - Fork 887
chore: remove Maybe
#9880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: remove Maybe
#9880
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, I just met you
And this is crazy
But we like braces
So goodbye Maybe
@@ -97,58 +96,65 @@ export const SignInForm: FC<React.PropsWithChildren<SignInFormProps>> = ({ | |||
<h1 className={styles.title}> | |||
Sign in to <strong>Coder</strong> | |||
</h1> | |||
<Maybe condition={error !== undefined}> | |||
|
|||
{Boolean(error) && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They're subtle changes, but I'm a big fan of you changing the conditions to catch any falsey value, instead of undefined, especially with the errors being of type unknown
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking this on! I'd love your thoughts on our <Cond />
component.
Y'know, maybe it's time to get rid of
Maybe