Parcourir la source

Fixed bug

bugfix/2236
jovan.cirkovic il y a 3 ans
Parent
révision
9fdaa6101d

+ 10
- 10
src/components/Cards/ProfileCard/ProfileCard.js Voir le fichier

@@ -83,11 +83,11 @@ const ProfileCard = (props) => {
if (profile?.statistics?.exchanges?.succeededExchanges === 0) {
percentOfSucceededExchanges = 0;
} else {
percentOfSucceededExchanges = Math.ceil(
((profile?.statistics?.exchanges?.succeededExchanges +
profile?.statistics?.exchanges?.failedExchanges) /
profile?.statistics?.exchanges?.succeededExchanges) *
100
percentOfSucceededExchanges = Math.round(
profile.statistics.exchanges.succeededExchanges /
((profile.statistics.exchanges.succeededExchanges +
profile.statistics.exchanges.failedExchanges) /
100)
);
}

@@ -95,11 +95,11 @@ const ProfileCard = (props) => {
if (profile?.statistics?.exchanges?.succeededCommunication === 0) {
percentOfSucceededCommunication = 0;
} else {
percentOfSucceededCommunication = Math.ceil(
((profile?.statistics?.exchanges?.succeededCommunication +
profile?.statistics?.exchanges?.failedCommunication) /
profile?.statistics?.exchanges?.succeededCommunication) *
100
percentOfSucceededCommunication = Math.round(
profile.statistics.exchanges.succeededCommunication /
((profile.statistics.exchanges.succeededCommunication +
profile.statistics.exchanges.failedCommunication) /
100)
);
}


+ 10
- 10
src/components/ProfileMini/ProfileMini.js Voir le fichier

@@ -35,11 +35,11 @@ const ProfileMini = () => {
if (offer?.user?.statistics?.exchanges?.succeededExchanges === 0) {
percentOfSucceededExchanges = 0;
} else {
percentOfSucceededExchanges = Math.ceil(
((offer?.user?.statistics?.exchanges?.succeededExchanges +
offer?.user?.statistics?.exchanges?.failedExchanges) /
offer?.user?.statistics?.exchanges?.succeededExchanges) *
100
percentOfSucceededExchanges = Math.round(
offer?.user?.statistics.exchanges.succeededExchanges /
((offer?.user?.statistics.exchanges.succeededExchanges +
offer?.user?.statistics.exchanges.failedExchanges) /
100)
);
}

@@ -47,11 +47,11 @@ const ProfileMini = () => {
if (offer?.user?.statistics?.exchanges?.succeededCommunication === 0) {
percentOfSucceededCommunication = 0;
} else {
percentOfSucceededCommunication = Math.ceil(
((offer?.user?.statistics?.exchanges?.succeededCommunication +
offer?.user?.statistics?.exchanges?.failedCommunication) /
offer?.user?.statistics?.exchanges?.succeededCommunication) *
100
percentOfSucceededCommunication = Math.round(
offer?.user?.statistics.exchanges.succeededCommunication /
((offer?.user?.statistics.exchanges.succeededCommunication +
offer?.user?.statistics.exchanges.failedCommunication) /
100)
);
}


+ 1
- 1
src/components/RichTextComponent/BlockButton/BlockButton.styled.js Voir le fichier

@@ -24,4 +24,4 @@ export const BlockButtonIcon = styled(Box)`
css`
color: ${selectedTheme.colors.primaryText};
`}
`;
`;

Chargement…
Annuler
Enregistrer