Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Matías García Isaía <[email protected]>
  • Loading branch information
ismaelbej and matiasgarciaisaia authored Oct 30, 2024
1 parent d157130 commit 111d8a7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions assets/css/_global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -836,8 +836,8 @@ i.survey-status {
.channel-paused {
display: block;
color: var(--reference-color12);
width: 12px;
height: 12px;
width: 24px;
height: 24px;
}

.wizard-content {
Expand Down
3 changes: 1 addition & 2 deletions assets/js/components/channels/ChannelIndex.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ class ChannelIndex extends Component<any> {
</li>
)
}

let providerUIs = []
config.verboice.forEach((_, index) => {
providerUIs.push(verboiceProviderUI(index, multipleVerboice))
Expand Down Expand Up @@ -297,7 +296,7 @@ class ChannelIndex extends Component<any> {
if (!channel)
return (
<tr key={-index} className="empty-row">
<td colSpan="4" />
<td colSpan="3" />
</tr>
)

Expand Down
1 change: 0 additions & 1 deletion assets/js/components/channels/ChannelPause.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ const ChannelPause = ({ channel, t, actions }) => {
const color = paused ? "green" : "red"

const pauseChannel = (channel, pause) => {
console.log(`About to ${pause ? "pause" : "unpause"} channel ${channel.id}`)
if (pause) {
actions.pause(channel.id)
} else {
Expand Down
2 changes: 1 addition & 1 deletion assets/js/components/channels/DownChannelsStatus.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DownChannelsStatus extends PureComponent {
render() {
const { channels, timestamp } = this.props
const channelNames = map(channels, (channel) => channel.name)
const paused = every(channels, (channel) => channel.statusInfo && channel.statusInfo.status == "paused")
const paused = every(channels, (channel) => channel.statusInfo?.status == "paused")
const text = paused ? "paused" : "down"
return this.downChannelsDescription(channelNames, timestamp, text)
}
Expand Down

0 comments on commit 111d8a7

Please sign in to comment.