Skip to content

Commit

Permalink
fix(technical user): fixed quotation marks when copied technical user…
Browse files Browse the repository at this point in the history
… details (#534)
  • Loading branch information
lavanya-bmw authored Feb 22, 2024
1 parent d49b9c4 commit ba076fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- User Management
- Removed quotation marks from technical user details
- Removed quotation marks when technical user details is copied
- Decline Status
- added button in overlay to logout deom portal
- Dataspace
Expand Down
6 changes: 3 additions & 3 deletions src/components/shared/basic/KeyValueView/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export const KeyValueView = ({ cols, title, items }: KeyValueViewProps) => {
},
}}
onClick={async () => {
const value = JSON.stringify(item.value) ?? ''
await navigator.clipboard.writeText(value)
setCopied(value)
const value = item.value ?? ''
await navigator.clipboard.writeText(value as string)
setCopied(value as string)
setTimeout(() => {
setCopied('')
}, 1000)
Expand Down

0 comments on commit ba076fd

Please sign in to comment.