Skip to content

Commit

Permalink
fix: #161 fix wrong id surfaced for developers when edit app (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
duong-se authored and phmngocnghia committed Feb 14, 2020
1 parent 9eae9a8 commit b68c215
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ exports[`AppDetailModalInner should match a snapshot 1`] = `
</p>
<div>
<p>
App ID:
Client ID:
</p>
<p />
</div>
Expand Down
6 changes: 3 additions & 3 deletions packages/marketplace/src/components/ui/app-detail.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ export const AppDetail: React.FunctionComponent<AppDetailProps> = ({
if (!data) {
return null
}

const {
id,
media = [],
Expand All @@ -59,6 +58,7 @@ export const AppDetail: React.FunctionComponent<AppDetailProps> = ({
isListed,
isDirectApi,
authFlow,
externalId,
} = data
const icon = media.filter(({ type }) => type === 'icon')[0]
const carouselImages = media.filter(({ type }) => type === 'image')
Expand Down Expand Up @@ -111,8 +111,8 @@ export const AppDetail: React.FunctionComponent<AppDetailProps> = ({
<>
<p className={styles.appInfo}>App Information</p>
<div key="app-id" className={styles.appInfoRow}>
<p className={styles.appInfoProperty}>App ID:</p>
<p>{id}</p>
<p className={styles.appInfoProperty}>Client ID:</p>
<p>{externalId}</p>
</div>
<div key="app-listed" className={styles.appInfoRow}>
<p className={styles.appInfoProperty}>Status:</p>
Expand Down
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-branches.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-lines.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion packages/marketplace/src/tests/badges/badge-statements.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b68c215

Please sign in to comment.