Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
xavier506 committed Oct 13, 2021
2 parents 5891b3d + f144b22 commit c0f7e77
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 10 deletions.
6 changes: 3 additions & 3 deletions webapp/src/components/BpChipAvatar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const ProducerChipAvatar = ({
)}
</Avatar>
}
label={data.owner}
label={data?.owner}
/>
)}
{!isProxy && (
Expand All @@ -50,8 +50,8 @@ const ProducerChipAvatar = ({
)}
</Avatar>
}
onDelete={() => onHandleRemove(data.owner)}
label={data.owner}
onDelete={() => onHandleRemove(data?.owner)}
label={data?.owner}
/>
)}
</>
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/components/CompareTool/CompareGraphView.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const CompareBodyList = ({ isProxy, selectedData, classes, removeBP }) => {
onHandleRemove={removeBP}
classNames={classes}
imageURL={_get(data, 'bpjson.org.branding.logo_256', null)}
key={`data-list-name-${data.owner}`}
key={`data-list-name-${data?.owner}`}
defaultName='BP'
/>
))}
Expand Down Expand Up @@ -134,7 +134,7 @@ const CompareGraphView = ({
<Box className={classes.wrapperDesktop}>
<Box className={classes.bodyModalView}>
<Box className={classes.chartWrapper}>
<PolarChart data={selected.map(({ data }) => ({ ...data }))} />
<PolarChart data={selected.map(bp => ({ data: bp?.data?.data }))} />
</Box>
{isProxy && selected.length > 0 && (
<Box className={classes.proxyVote}>
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/routes/BlockProducers/BlockProducerProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const BlockProducerProfile = () => {
const setProfileData = bp => {
const userDataSet = getBPRadarData({
name: t('edenRates'),
parameters: getRatingData(bp.edenRate)
parameters: getRatingData(bp?.edenRate)
})

setBpHasInformation(!!Object.values(bp.bpjson).length)
Expand Down
2 changes: 1 addition & 1 deletion webapp/src/routes/BlockProducers/BlockProducerRate.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ const BlockProducerRate = () => {
if (bp) {
const edenDataSet = getBPRadarData({
name: t('edenRates'),
parameters: getSavedRatingData(bp.edenRate)
parameters: getSavedRatingData(bp?.edenRate)
})

setBlockProducerTitle(
Expand Down
1 change: 0 additions & 1 deletion webapp/src/routes/BlockProducers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ const AllBps = () => {
const handleToggleSelected = (item, isAddItem = false) => {
if (isAddItem) {
setSelectedProducers([...state.selectedProducers, item])
console.log({ selectedProducers: state?.selectedProducers })
} else {
const removeSelected = state.selectedProducers.filter(
bpName => bpName !== item
Expand Down
2 changes: 0 additions & 2 deletions webapp/src/routes/Proxies/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ const AllProxies = ({ ual = {} }) => {
}

const handleOpenDesktopVotingTool = (isAdding, producerAccountName) => {
console.log({ isAdding, producerAccountName })

setSelectedProxies([producerAccountName])
setCompareProxyTool(true)
}
Expand Down

0 comments on commit c0f7e77

Please sign in to comment.