-
Notifications
You must be signed in to change notification settings - Fork 77
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
Updated Zulip.js #180
Updated Zulip.js #180
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -61,23 +61,23 @@ class Zulip extends Component { | |||||
<ul> | ||||||
<li> | ||||||
<b>#newcomers: </b> | ||||||
{zulipstat[0] ? zulipstat[0].newcomers_messages : 0} | ||||||
{zulipstat && zulipstat[0] && zulipstat[0].newcomers_message ? zulipstat[0].newcomers_message : 0} | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This line looks repeated for
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @codesankalp check now changes done. |
||||||
</li> | ||||||
<li> | ||||||
<b>#celebrate: </b> | ||||||
{zulipstat[0] ? zulipstat[0].celebrate_messages : 0} | ||||||
{zulipstat && zulipstat[0] && zulipstat[0].celebrate_message ? zulipstat[0].celebrate_message : 0} | ||||||
</li> | ||||||
<li> | ||||||
<b>#opportunities: </b> | ||||||
{zulipstat[0] ? zulipstat[0].opportunities_messages : 0} | ||||||
{zulipstat && zulipstat[0] && zulipstat[0].opportunities_message ? zulipstat[0].opportunities_message : 0} | ||||||
</li> | ||||||
<li> | ||||||
<b>#questions: </b> | ||||||
{zulipstat[0] ? zulipstat[0].questions_messages : 0} | ||||||
{zulipstat && zulipstat[0] && zulipstat[0].questions_message ? zulipstat[0].questions_message : 0} | ||||||
</li> | ||||||
<li> | ||||||
<b>#general: </b> | ||||||
{zulipstat[0] ? zulipstat[0].general_messages : 0} | ||||||
{zulipstat && zulipstat[0] && zulipstat[0].general_message ? zulipstat[0].general_message : 0} | ||||||
</li> | ||||||
</ul> | ||||||
</> | ||||||
|
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.
Why are you removing this?
You need to change the condition so that it can render without any errors.
Same change for other lines also.
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.
@codesankalp can you please check if I made the right changes?