Skip to content

Commit

Permalink
fixing linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
AceTheCreator committed Sep 20, 2023
1 parent e9a9225 commit 5cb4c26
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions library/src/containers/Messages/Message.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export const Message: React.FunctionComponent<Props> = ({
const xParserMessageName = message.json()['x-parser-message-name'];
if (
!messageId ||
Number(messageId) == index ||
(Number(messageId) == 0 && xParserMessageName)
Number(messageId) === index ||
(Number(messageId) === 0 && xParserMessageName)
) {
messageId = xParserMessageName;
}
Expand Down
17 changes: 12 additions & 5 deletions library/src/containers/Operations/Operation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,14 @@ export const OperationReplyInfo: React.FunctionComponent<Props> = props => {
const { type = PayloadType.SEND, operation } = props;
const config = useConfig();
const [showMessages, setShowMessages] = useState(false);
if (type !== PayloadType.REPLY && type !== PayloadType.REQUEST) return <></>;
if (type !== PayloadType.REPLY && type !== PayloadType.REQUEST) {
return <></>;
}
const reply = operation.reply();
if (reply === undefined) return <></>;
if (reply === undefined) {
return <></>;
}
const { typeLabel } = getTypeInformation({ type, config });
console.log(typeLabel);
const replyMessages = reply.messages();
const explicitChannel = reply.channel();

Expand Down Expand Up @@ -371,9 +374,13 @@ export const OperationReplyAddressInfo: React.FunctionComponent<Props> = ({
operation,
}) => {
const config = useConfig();
if (type !== PayloadType.REPLY && type !== PayloadType.REQUEST) return <></>;
if (type !== PayloadType.REPLY && type !== PayloadType.REQUEST) {
return <></>;
}
const reply = operation.reply();
if (reply === undefined || !reply.hasAddress()) return <></>;
if (reply === undefined || !reply.hasAddress()) {
return <></>;
}
const { typeLabel } = getTypeInformation({ type, config });
const replyAddress = reply.address()!;
const replyAddressLocation = replyAddress.location();
Expand Down

0 comments on commit 5cb4c26

Please sign in to comment.