File tree Expand file tree Collapse file tree 1 file changed +10
-3
lines changed
governance/xc-admin/packages/xc-admin-frontend/components/tabs Expand file tree Collapse file tree 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change 1+ import { PublicKey } from '@solana/web3.js'
12import { usePythContext } from '../../contexts/PythContext'
23import ClusterSwitch from '../ClusterSwitch'
34import Loadbar from '../loaders/Loadbar'
@@ -25,15 +26,21 @@ function UpdatePermissions() {
2526 < div className = "mt-3" >
2627 < p className = "h5 mb-8" >
2728 Master Authority:{ ' ' }
28- { rawConfig . permissionAccount ?. masterAuthority . toBase58 ( ) }
29+ { rawConfig . permissionAccount
30+ ? rawConfig . permissionAccount . masterAuthority . toBase58 ( )
31+ : new PublicKey ( 0 ) . toBase58 ( ) }
2932 </ p >
3033 < p className = "h5 mb-8" >
3134 Data Curation Authority:{ ' ' }
32- { rawConfig . permissionAccount ?. dataCurationAuthority . toBase58 ( ) }
35+ { rawConfig . permissionAccount
36+ ? rawConfig . permissionAccount . dataCurationAuthority . toBase58 ( )
37+ : new PublicKey ( 0 ) . toBase58 ( ) }
3338 </ p >
3439 < p className = "h5 mb-8" >
3540 Security Authority:{ ' ' }
36- { rawConfig . permissionAccount ?. securityAuthority . toBase58 ( ) }
41+ { rawConfig . permissionAccount
42+ ? rawConfig . permissionAccount . securityAuthority . toBase58 ( )
43+ : new PublicKey ( 0 ) . toBase58 ( ) }
3744 </ p >
3845 </ div >
3946 ) }
You can’t perform that action at this time.
0 commit comments