Skip to content
This repository was archived by the owner on May 3, 2024. It is now read-only.

Commit da99455

Browse files
committed
minor updated
1 parent d99b932 commit da99455

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

2-Authorization-I/1-call-graph/AppCreationScripts/Configure.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Function ConfigureApplications
147147
$spaAadApplication = New-MgApplication -DisplayName "ms-identity-react-c2s1" `
148148
-Spa `
149149
@{ `
150-
RedirectUris = "http://localhost:3000/", "http://localhost:3000/redirect"; `
150+
RedirectUris = "http://localhost:3000/", "http://localhost:3000/redirect.html"; `
151151
} `
152152
-SignInAudience AzureADMyOrg `
153153
#end of command

2-Authorization-I/1-call-graph/SPA/src/components/DataDisplay.jsx

+4-3
Original file line numberDiff line numberDiff line change
@@ -130,17 +130,18 @@ export const ContactsData = (props) => {
130130
</div>
131131
</Row>
132132
<Row className="d-flex flex-row">
133-
{props.graphContacts.value.length === 0 ?
133+
{!props.graphContacts.value || props.graphContacts.value.length === 0 ? (
134134
<p className="text-center">You have 0 contacts</p>
135-
:
135+
) : (
136136
props.graphContacts.value.map((contact) => (
137137
<Card className="card" key={contact.id}>
138138
<Card.Body>
139139
<Card.Title>{contact.displayName}</Card.Title>
140140
<Card.Text>{contact.personalNotes}</Card.Text>
141141
</Card.Body>
142142
</Card>
143-
))}
143+
))
144+
)}
144145
</Row>
145146
</Container>
146147
);

2-Authorization-I/1-call-graph/SPA/src/styles/App.css

+2-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@
1919
}
2020

2121
.navbarButton {
22-
color: #fff !important
22+
color: #fff !important;
23+
padding: .5rem 1rem !important;
2324
}
2425

2526
.tableColumn {

0 commit comments

Comments
 (0)