| @@ -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) | |||
| ); | |||
| } | |||
| @@ -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) | |||
| ); | |||
| } | |||
| @@ -24,4 +24,4 @@ export const BlockButtonIcon = styled(Box)` | |||
| css` | |||
| color: ${selectedTheme.colors.primaryText}; | |||
| `} | |||
| `; | |||
| `; | |||