Skip to content

Commit 3867441

Browse files
authored
fix: show static author email for all git auth types (Kong#9626)
* fix: show static author email for all git auth types * move field
1 parent 6730edb commit 3867441

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

packages/insomnia/src/ui/components/project/project-settings-form.tsx

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ export const ProjectSettingsForm: FC<Props> = ({
291291
providerInfo={selectedProvider}
292292
projectId={project!._id}
293293
/>
294-
{showEmailSelector && (
294+
{showEmailSelector ? (
295295
<div className="flex flex-col gap-2">
296296
{isLoadingEmails ? (
297297
<div className="flex items-center gap-2 text-sm">
@@ -369,7 +369,14 @@ export const ProjectSettingsForm: FC<Props> = ({
369369
</div>
370370
)}
371371
</div>
372-
)}
372+
) : selectedCredential?.author.email ? (
373+
<div className="text-[12px]">
374+
<div className="flex">
375+
<div className="w-[110px] font-semibold">Author Email</div>
376+
<div>{selectedCredential?.author.email}</div>
377+
</div>
378+
</div>
379+
) : null}
373380
</>
374381
)}
375382
{showGitRepoForm && (

0 commit comments

Comments
 (0)