Skip to content

Commit

Permalink
fixing sonar errors
Browse files Browse the repository at this point in the history
  • Loading branch information
AceTheCreator committed Nov 4, 2023
1 parent add84be commit 78b1f0f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/src/containers/Operations/Operation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,13 +200,13 @@ function getTypeInformation({
if (typeRes === PayloadType.REPLY) {
return {
borderColor: 'border-orange-600 text-orange-600',
typeLabel: config.replyLabel || REPLIER_LABEL_DEFAULT_TEXT,
typeLabel: config.replyLabel ?? REPLIER_LABEL_DEFAULT_TEXT,
};
}
if (typeRes === PayloadType.REQUEST) {
return {
borderColor: 'border-red-600 text-red-600',
typeLabel: config.requestLabel || REQUEST_LABEL_DEFAULT_TEXT,
typeLabel: config.requestLabel ?? REQUEST_LABEL_DEFAULT_TEXT,
};
}
return {
Expand Down Expand Up @@ -345,7 +345,7 @@ export const OperationReplyInfo: React.FunctionComponent<Props> = props => {
) : (
<div className="text-xs text-gray-700">
Reply will be directed to the address specified at this
location:
location:{' '}
<span className="border text-orange-600 rounded text-xs ml-2 py-0 px-2">
{replyAddress}
</span>
Expand Down

0 comments on commit 78b1f0f

Please sign in to comment.