diff --git a/library/src/containers/Operations/Operation.tsx b/library/src/containers/Operations/Operation.tsx index aaba2f592..19431503b 100644 --- a/library/src/containers/Operations/Operation.tsx +++ b/library/src/containers/Operations/Operation.tsx @@ -184,7 +184,7 @@ function getTypeInformation({ type: PayloadType; config: ConfigInterface; }): { borderColor: string; typeLabel: string } { - if (type === PayloadType.RECIEVE) { + if (type === PayloadType.RECEIVE) { return { borderColor: 'border-green-600 text-green-600', typeLabel: config.subscribeLabel ?? SUBSCRIBE_LABEL_DEFAULT_TEXT, @@ -216,7 +216,7 @@ export const OperationInfo: React.FunctionComponent = props => { const externalDocs = operation.externalDocs(); const operationId = operation.id(); if (operation.action() !== type) { - type = PayloadType.RECIEVE; + type = PayloadType.RECEIVE; } const { borderColor, typeLabel } = getTypeInformation({ type, config }); @@ -285,6 +285,7 @@ export const OperationReplyInfo: React.FunctionComponent = props => { if (reply === undefined) return <>; const config = useConfig(); const { typeLabel } = getTypeInformation({ type, config }); + console.log(typeLabel); const replyMessages = reply.messages(); const explicitChannel = reply.channel(); @@ -295,13 +296,14 @@ export const OperationReplyInfo: React.FunctionComponent = props => {

- {typeLabel === 'SEND' ? 'Requester' : 'Replier'} information + {typeLabel === 'REQUEST' ? 'Requester' : 'Replier'}{' '} + information

{explicitChannel && ( diff --git a/library/src/containers/Operations/Operations.tsx b/library/src/containers/Operations/Operations.tsx index 394bb865c..ec6c96383 100644 --- a/library/src/containers/Operations/Operations.tsx +++ b/library/src/containers/Operations/Operations.tsx @@ -84,12 +84,12 @@ export const Operations: React.FunctionComponent = () => { className="mb-12" key={`sub-${operation.id()}`} id={CommonHelpers.getIdentifier( - `operation-${PayloadType.RECIEVE}-${operation.id()}`, + `operation-${PayloadType.RECEIVE}-${operation.id()}`, config, )} >