mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
Update src/renderer/components/about-app.tsx
Co-authored-by: Kiran Niranjan <kiranleo1992@gmail.com>
This commit is contained in:
parent
ff1bda00b6
commit
be09caeb81
@ -132,7 +132,11 @@ export default class AboutApp extends React.Component<{}, IState> {
|
||||
public copy(): void {
|
||||
const data = this.state;
|
||||
if (data) {
|
||||
const data2 = JSON.parse(JSON.stringify(data).split('"clientVersion":').join('"sbeVersion":'));
|
||||
const { clientVersion, ...rest } = this.state;
|
||||
const data = { ...{ sbeVersion: clientVersion }, ...rest };
|
||||
if (data) {
|
||||
remote.clipboard.write({ text: JSON.stringify(data, null, 4) }, 'clipboard');
|
||||
}
|
||||
remote.clipboard.write({ text: JSON.stringify(data2, null, 4) }, 'clipboard');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user