Skip to content
This repository has been archived by the owner on Mar 12, 2024. It is now read-only.

Conditionally render placeholder #342

Merged
merged 2 commits into from
Oct 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/(loggedIn)/team/loading.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ async function loading({}) {
<input
className="form-control "
type="email"
placeholder={`Teammate@${teamName.name.toLowerCase()}.com`}
placeholder={`Teammate@${teamName?.name.toLowerCase()}.com`}
aria-label="Teammate email"
/>
<button className="btn" type="button">
Expand Down
2 changes: 1 addition & 1 deletion app/(loggedIn)/team/sendInviteForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function sendInviteForm({ teamName, userEmail }) {
<input
className="form-control "
type="email"
placeholder={`Teammate@${teamName.toLowerCase()}.com`}
placeholder={`Teammate@${teamName?.name?.toLowerCase()}.com`}
aria-label="Teammate email"
/>
<button className="btn mx-2" type="submit" disabled={buttonDisabled}>
Expand Down