Skip to content

Commit 8a36867

Browse files
maximthomasCopilot
andauthored
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 31dc8a7 commit 8a36867

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

openam-ui/openam-ui-js-sdk/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ Here's a basic example of how to use the SDK in a React application:
5151

5252
```tsx
5353
import React from 'react';
54-
import OpenAMUI from 'openam-js-sdk';
54+
import { OpenAMUI } from 'openam-js-sdk';
5555

5656
const App = () => {
5757
return (

openam-ui/openam-ui-js-sdk/src/lib/components/DefaultCallbackElement.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const DefaultCallbackElement: CallbackElement = ({ callback, setCallbackValue })
4242

4343
const renderTextOutputCallback = (callback: Callback) => {
4444
const propMap = Object.fromEntries(callback.output.map((o) => [o.name, o.value]))
45-
const messageType = propMap['messageType']
45+
const messageType = String(propMap["messageType"] ?? "");
4646
const message = propMap['message'] as string
4747
switch (messageType) {
4848
case "0":

0 commit comments

Comments
 (0)