Skip to content

Conversation

@matejminar
Copy link
Member

Before

image

After

image

@matejminar matejminar requested a review from a team October 28, 2021 15:07
const timePeriod = this.getTimePeriod();

return (
return !hasError ? (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think an early return might be easier to read, but it's fine either way

if (hasError) {
	return this.renderError()
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants