diff --git a/hapi/yarn.lock b/hapi/yarn.lock
index 25f16cab..2976f26b 100644
--- a/hapi/yarn.lock
+++ b/hapi/yarn.lock
@@ -70,9 +70,9 @@
js-tokens "^4.0.0"
"@babel/parser@^7.15.4", "@babel/parser@^7.3.1":
- version "7.15.5"
- resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.5.tgz#d33a58ca69facc05b26adfe4abebfed56c1c2dac"
- integrity sha512-2hQstc6I7T6tQsWzlboMh3SgMRPaS4H6H7cPQsJkdzTzEGqQrpLDsE2BGASU5sBPoEQyHzeqU6C8uKbFeEk6sg==
+ version "7.15.6"
+ resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.15.6.tgz#043b9aa3c303c0722e5377fef9197f4cf1796549"
+ integrity sha512-S/TSCcsRuCkmpUuoWijua0Snt+f3ewU/8spLo+4AXJCZfT0bVCzLD5MuOKdrx0mlAptbKzn5AdgEIIKXxXkz9Q==
"@babel/template@^7.15.4":
version "7.15.4"
@@ -99,9 +99,9 @@
globals "^11.1.0"
"@babel/types@^7.15.4":
- version "7.15.4"
- resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.15.4.tgz#74eeb86dbd6748d2741396557b9860e57fce0a0d"
- integrity sha512-0f1HJFuGmmbrKTCZtbm3cU+b/AqdEYk5toj5iQur58xkVMlS0JWaKxTBSmCXd47uiN7vbcozAupm6Mvs80GNhw==
+ version "7.15.6"
+ resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.15.6.tgz#99abdc48218b2881c058dd0a7ab05b99c9be758f"
+ integrity sha512-BPU+7QhqNjmWyDO0/vitH/CuhpV8ZmK1wpKva8nuyNF5MJfuRNWMc+hc14+u9xT93kvykMdncrJT19h74uB1Ig==
dependencies:
"@babel/helper-validator-identifier" "^7.14.9"
to-fast-properties "^2.0.0"
@@ -445,9 +445,9 @@ ajv@^6.10.0, ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4:
uri-js "^4.2.2"
ajv@^8.0.1:
- version "8.6.2"
- resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.6.2.tgz#2fb45e0e5fcbc0813326c1c3da535d1881bb0571"
- integrity sha512-9807RlWAgT564wT+DjeyU5OFMPjmzxVobvDFmNAhY+5zD6A2ly3jDp6sgnfyDtlIQ+7H97oc/DGCzzfu9rjw9w==
+ version "8.6.3"
+ resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.6.3.tgz#11a66527761dc3e9a3845ea775d2d3c0414e8764"
+ integrity sha512-SMJOdDP6LqTkD0Uq8qLi+gMwSt0imXLSV080qFVwJCpH9U6Mb+SUGHAXM0KNbcBPguytWyvFxcHgMLe2D2XSpw==
dependencies:
fast-deep-equal "^3.1.1"
json-schema-traverse "^1.0.0"
@@ -499,9 +499,9 @@ ansi-regex@^4.1.0:
integrity sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==
ansi-regex@^5.0.0:
- version "5.0.0"
- resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.0.tgz#388539f55179bf39339c81af30a654d69f87cb75"
- integrity sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==
+ version "5.0.1"
+ resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304"
+ integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==
ansi-styles@^2.2.1:
version "2.2.1"
@@ -544,7 +544,7 @@ array-find-index@^1.0.1:
resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1"
integrity sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=
-array-includes@^3.1.1, array-includes@^3.1.2, array-includes@^3.1.3:
+array-includes@^3.1.1, array-includes@^3.1.3:
version "3.1.3"
resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.3.tgz#c7f619b382ad2afaf5326cddfdc0afc61af7690a"
integrity sha512-gcem1KlBU7c9rB+Rq8/3PPKsK2kjqeEBa3bD5kkQo4nYlOHQCJqIJFqBXDEfwaRuYTT4E+FxA9xez7Gf/e3Q7A==
@@ -952,7 +952,7 @@ color-name@~1.1.4:
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==
-colorette@^1.2.2:
+colorette@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.4.0.tgz#5190fbb87276259a86ad700bff2c6d6faa3fca40"
integrity sha512-Y2oEozpomLn7Q3HFP7dpww7AtMJplbM9lGZP6RDfHqmbeRjiwRg4n6VM6j4KLmRke85uWEI7JqF17f3pqdRA0g==
@@ -1448,9 +1448,9 @@ eslint-plugin-promise@~4.2.1:
integrity sha512-VoM09vT7bfA7D+upt+FjeBO5eHIJQBUWki1aPvB+vbNiHS3+oGIJGIeyBtKQTME6UPXXy3vV07OL1tHd3ANuDw==
eslint-plugin-react@>=7.24.0:
- version "7.25.1"
- resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.25.1.tgz#9286b7cd9bf917d40309760f403e53016eda8331"
- integrity sha512-P4j9K1dHoFXxDNP05AtixcJEvIT6ht8FhYKsrkY0MPCPaUMYijhpWwNiRDZVtA8KFuZOkGSeft6QwH8KuVpJug==
+ version "7.25.2"
+ resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.25.2.tgz#d567a217d306b76dd110561f28074e2328ae38f8"
+ integrity sha512-elx4585wgmryanJK4C5IoSKQyVZ+e7H0t2JOOtJNBql0cuercvSShvRReuLBbfx8687yW5yv+UL7pXwMsd6adQ==
dependencies:
array-includes "^3.1.3"
array.prototype.flatmap "^1.2.4"
@@ -2615,11 +2615,11 @@ jsprim@^1.2.2:
verror "1.10.0"
"jsx-ast-utils@^2.4.1 || ^3.0.0":
- version "3.2.0"
- resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.2.0.tgz#41108d2cec408c3453c1bbe8a4aae9e1e2bd8f82"
- integrity sha512-EIsmt3O3ljsU6sot/J4E1zDRxfBNrhjyf/OKjlydwgEimQuznlM4Wv7U+ueONJMyEn1WRE0K8dhi3dVAXYT24Q==
+ version "3.2.1"
+ resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.2.1.tgz#720b97bfe7d901b927d87c3773637ae8ea48781b"
+ integrity sha512-uP5vu8xfy2F9A6LGC22KO7e2/vGTS1MhP+18f++ZNlf0Ohaxbc9nIEwHAsejlJKyzfZzU5UIhe5ItYkitcZnZA==
dependencies:
- array-includes "^3.1.2"
+ array-includes "^3.1.3"
object.assign "^4.1.2"
latest-version@^3.0.0:
@@ -2682,12 +2682,12 @@ lint@^0.7.0:
write-yaml "^1.0.0"
listr2@^3.8.2:
- version "3.11.1"
- resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.11.1.tgz#a9bab5cd5874fd3cb7827118dbea6fedefbcb43f"
- integrity sha512-ZXQvQfmH9iWLlb4n3hh31yicXDxlzB0pE7MM1zu6kgbVL4ivEsO4H8IPh4E682sC8RjnYO9anose+zT52rrpyg==
+ version "3.12.1"
+ resolved "https://registry.yarnpkg.com/listr2/-/listr2-3.12.1.tgz#75e515b86c66b60baf253542cc0dced6b60fedaf"
+ integrity sha512-oB1DlXlCzGPbvWhqYBZUQEPJKqsmebQWofXG6Mpbe3uIvoNl8mctBEojyF13ZyqwQ91clCWXpwsWp+t98K4FOQ==
dependencies:
cli-truncate "^2.1.0"
- colorette "^1.2.2"
+ colorette "^1.4.0"
log-update "^4.0.0"
p-map "^4.0.0"
rxjs "^6.6.7"
@@ -2912,11 +2912,16 @@ micromatch@^4.0.4:
braces "^3.0.1"
picomatch "^2.2.3"
-mime-db@1.49.0, mime-db@1.x.x:
+mime-db@1.49.0:
version "1.49.0"
resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.49.0.tgz#f3dfde60c99e9cf3bc9701d687778f537001cbed"
integrity sha512-CIc8j9URtOVApSFCQIF+VBkX1RwXp/oMMOrqdyXSBXq5RWNEsRfyj1kiRnQgmNXmHxPoFIxOroKA3zcU9P+nAA==
+mime-db@1.x.x:
+ version "1.50.0"
+ resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.50.0.tgz#abd4ac94e98d3c0e185016c67ab45d5fde40c11f"
+ integrity sha512-9tMZCDlYHqeERXEHO9f/hKfNXhre5dK2eE/krIvUjZbS2KPcqGDfNShIWS1uW9XOTKQKqK6qbeOci18rbfW77A==
+
mime-types@^2.1.12, mime-types@~2.1.19:
version "2.1.32"
resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.32.tgz#1d00e89e7de7fe02008db61001d9e02852670fd5"
@@ -2969,9 +2974,9 @@ moment@^2.22.2:
integrity sha512-kHmoybcPV8Sqy59DwNDY3Jefr64lK/by/da0ViFcuA4DH0vQg5Q6Ze5VimxkfQNSC+Mls/Kx53s7TjP1RhFEDQ==
mri@^1.1.5:
- version "1.1.6"
- resolved "https://registry.yarnpkg.com/mri/-/mri-1.1.6.tgz#49952e1044db21dbf90f6cd92bc9c9a777d415a6"
- integrity sha512-oi1b3MfbyGa7FJMP9GmLTttni5JoICpYBRlq+x5V16fZbLsnL9N3wFqqIm/nIG43FjUFkFh9Epzp/kzUGUnJxQ==
+ version "1.2.0"
+ resolved "https://registry.yarnpkg.com/mri/-/mri-1.2.0.tgz#6721480fec2a11a4889861115a48b6cbe7cc8f0b"
+ integrity sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==
ms@2.0.0:
version "2.0.0"
@@ -3635,9 +3640,9 @@ prettier@^1.15.3:
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
prettier@^2.3.2:
- version "2.3.2"
- resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.2.tgz#ef280a05ec253712e486233db5c6f23441e7342d"
- integrity sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==
+ version "2.4.1"
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1.tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c"
+ integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA==
pretty-quick@^3.1.1:
version "3.1.1"
@@ -4066,9 +4071,9 @@ side-channel@^1.0.4:
object-inspect "^1.9.0"
signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3:
- version "3.0.3"
- resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.3.tgz#a1410c2edd8f077b08b4e253c8eacfcaf057461c"
- integrity sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==
+ version "3.0.4"
+ resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.4.tgz#366a4684d175b9cab2081e3681fda3747b6c51d7"
+ integrity sha512-rqYhcAnZ6d/vTPGghdrw7iumdcbXpsk1b8IG/rz+VWV51DM0p7XCtMoJ3qhPLIbp3tvyt3pKRbaaEMZYpHto8Q==
simple-git@^1.96.0:
version "1.132.0"
diff --git a/webapp/package.json b/webapp/package.json
index 2394ad0e..478a3e81 100644
--- a/webapp/package.json
+++ b/webapp/package.json
@@ -21,7 +21,7 @@
}
},
"dependencies": {
- "@eoscostarica/eoscr-components": "^3.1.4",
+ "@eoscostarica/eoscr-components": "^3.5.4",
"@material-ui/core": "^4.12.1",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.60",
diff --git a/webapp/src/components/table/index.js b/webapp/src/components/table/index.js
new file mode 100644
index 00000000..565448a2
--- /dev/null
+++ b/webapp/src/components/table/index.js
@@ -0,0 +1,46 @@
+import React from 'react'
+import PropTypes from 'prop-types'
+import Table from '@material-ui/core/Table'
+import TableBody from '@material-ui/core/TableBody'
+import TableCell from '@material-ui/core/TableCell'
+import TableContainer from '@material-ui/core/TableContainer'
+import TableHead from '@material-ui/core/TableHead'
+import TableRow from '@material-ui/core/TableRow'
+
+const BasicTable = ({ rows, heads }) => {
+ return (
+
+
+
+
+ {heads.map((head) => (
+
+ {head}
+
+ ))}
+
+
+
+ {rows.map((row) => (
+
+ {row.rater}
+ {row.amount}
+ {row.average}
+
+ ))}
+
+
+
+ )
+}
+
+BasicTable.propTypes = {
+ rows: PropTypes.array,
+ heads: PropTypes.array
+}
+
+export default BasicTable
diff --git a/webapp/src/language/en.json b/webapp/src/language/en.json
index 9aae2187..a0d19c42 100644
--- a/webapp/src/language/en.json
+++ b/webapp/src/language/en.json
@@ -205,8 +205,14 @@
"generalInformation": "General Information",
"eosRates": "General Rating",
"edenRates": "Eden Rating",
+ "raters": "Raters",
+ "amount": "Ratings",
"rankings": "Rankings",
"social": "Social",
+ "additionalResource": "Additional Resources",
+ "researchPortal": "EOS Block Producer Research Portal",
+ "bpValidator": "Block Producer Validator",
+ "bpInterviews": "Block Producer Interviews",
"account": "Account",
"location": "Location",
"status": "Status",
diff --git a/webapp/src/language/es.json b/webapp/src/language/es.json
index df332b0e..e4a80567 100644
--- a/webapp/src/language/es.json
+++ b/webapp/src/language/es.json
@@ -205,8 +205,14 @@
"generalInformation": "Información General",
"eosRates": "Calificación General",
"edenRates": "Calificación Eden",
- "rankings": "Clasificaciones",
+ "raters": "Calificadores",
+ "amount": "Calificaciones",
+ "rankings": "Promedio",
"social": "Social",
+ "additionalResource": "Recursos Adicionales",
+ "researchPortal": "Portal de investigación de productores de bloques de EOS",
+ "bpValidator": "Validador de productores de bloques",
+ "bpInterviews": "Entrevistas a productores de bloques",
"account": "Cuenta",
"location": "Ubicación",
"status": "Estado",
diff --git a/webapp/src/language/ko.json b/webapp/src/language/ko.json
index 376d6140..85622fee 100644
--- a/webapp/src/language/ko.json
+++ b/webapp/src/language/ko.json
@@ -204,8 +204,14 @@
"generalInformation": "기본적인 정보",
"eosRates": "기본적인 평가",
"edenRates": "Eden 평가",
- "rankings": "랭킹",
+ "raters": "평가자",
+ "amount": "평가",
+ "rankings": "평균",
"social": "소셜",
+ "additionalResource": "추가 리소스",
+ "researchPortal": "EOS 블록 프로듀서 연구 포털",
+ "bpValidator": "블록 생산자 검증자",
+ "bpInterviews": "블록 프로듀서 인터뷰",
"account": "어카운트",
"location": "지역",
"status": "상태",
diff --git a/webapp/src/routes/block-producers/block-producer-profile.js b/webapp/src/routes/block-producers/block-producer-profile.js
index f2930b29..e7cb4e14 100644
--- a/webapp/src/routes/block-producers/block-producer-profile.js
+++ b/webapp/src/routes/block-producers/block-producer-profile.js
@@ -1,27 +1,38 @@
-import React, { useState, useEffect, forwardRef } from 'react'
+import React, { useState, useEffect, forwardRef, Fragment } from 'react'
import PropTypes from 'prop-types'
import { useDispatch, useSelector } from 'react-redux'
import { useTranslation } from 'react-i18next'
-import { Link } from '@reach/router'
+import { Link, useLocation } from '@reach/router'
import Avatar from '@material-ui/core/Avatar'
import Button from '@material-ui/core/Button'
import Grid from '@material-ui/core/Grid'
+import Snackbar from '@material-ui/core/Snackbar'
import Typography from '@material-ui/core/Typography'
import { makeStyles } from '@material-ui/core/styles'
+import MuiAlert from '@material-ui/lab/Alert'
import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft'
import AccountCircle from '@material-ui/icons/AccountCircle'
-import { Box, useMediaQuery } from '@material-ui/core'
+import CloseIcon from '@material-ui/icons/Close'
import _get from 'lodash.get'
+import {
+ Box,
+ useMediaQuery,
+ IconButton,
+ Link as MLink
+} from '@material-ui/core'
+import { blockExplorer } from '../../config'
import getBPRadarData from 'utils/getBPRadarData'
import TitlePage from 'components/title-page'
import Radar from 'components/radar'
-
+import Table from 'components/table'
import {
SocialNetworks,
GeneralInformation,
- WebsiteLegend
+ WebsiteLegend,
+ AdditionalResources
} from './general-information-profile'
+import getAverageValue from 'utils/getAverageValue'
import styles from './styles'
const useStyles = makeStyles(styles)
@@ -63,8 +74,10 @@ const BlockProducerProfile = ({ account, ual, ...props }) => {
const isDesktop = useMediaQuery('(min-width:767px)')
const isMobile = useMediaQuery('(max-width:768px)')
const accountName = _get(ual, 'activeUser.accountName', null)
+ const location = useLocation()
const [sizes, setSizes] = useState()
const [isNewRate, setIsNewRate] = useState(true)
+ const [open, setOpen] = useState(false)
const {
list: blockProducers,
producer,
@@ -110,6 +123,17 @@ const BlockProducerProfile = ({ account, ual, ...props }) => {
parameters: getRatingData()
})
+ const handleClose = (event, reason) => {
+ if (reason === 'clickaway') {
+ return
+ }
+ setOpen(false)
+ }
+
+ function Alert(props) {
+ return
+ }
+
useEffect(() => {
setSizes(isDesktop ? 400 : '100%')
}, [isDesktop])
@@ -139,6 +163,11 @@ const BlockProducerProfile = ({ account, ual, ...props }) => {
else setIsNewRate(true)
}, [userRate])
+ useEffect(() => {
+ if (location.state.transactionId) setOpen(true)
+ else setOpen(false)
+ }, [])
+
return (
@@ -182,21 +211,30 @@ const BlockProducerProfile = ({ account, ual, ...props }) => {
{!isMobile && (
-
-
+
+
+
+
+
-
)}
-
-
+
+
{
{isNewRate ? t('buttonRate') : t('updateRatingButton')}
+
+
+
{isMobile && (
+
{
/>
)}
-
-
-
{isMobile && (
{
overrideClass={classes.showOnlyLg}
producer={bpHasInformation && producer}
/>
+
)}
+
+
+
+
+
+
+
+
+ }
+ />
)
}
diff --git a/webapp/src/routes/block-producers/block-producer-rate.js b/webapp/src/routes/block-producers/block-producer-rate.js
index c230baad..bfaf2018 100644
--- a/webapp/src/routes/block-producers/block-producer-rate.js
+++ b/webapp/src/routes/block-producers/block-producer-rate.js
@@ -1,5 +1,5 @@
/* eslint-disable react/display-name */
-import React, { useState, useEffect, forwardRef } from 'react'
+import React, { useState, useEffect, forwardRef, useRef } from 'react'
import PropTypes from 'prop-types'
import { useTranslation } from 'react-i18next'
import { useDispatch, useSelector } from 'react-redux'
@@ -8,14 +8,11 @@ import {
useMediaQuery,
Avatar,
Button,
- IconButton,
Grid,
CircularProgress,
- Typography,
- Link as MLink
+ Typography
} from '@material-ui/core'
import AccountCircle from '@material-ui/icons/AccountCircle'
-import Close from '@material-ui/icons/Close'
import KeyboardArrowLeft from '@material-ui/icons/KeyboardArrowLeft'
import _get from 'lodash.get'
import classNames from 'classnames'
@@ -27,7 +24,7 @@ import Box from '@material-ui/core/Box'
import TitlePage from 'components/title-page'
import Radar from 'components/radar'
-import { contract, blockExplorer } from '../../config'
+import { contract } from '../../config'
import getBPRadarData from 'utils/getBPRadarData'
import SliderRatingSection from './slider-rating-section'
@@ -56,6 +53,7 @@ const BlockProducerRate = ({ account, ual }) => {
const [isNewRate, setIsNewRate] = useState(true)
const [showMessage, setShowMessage] = useState(false)
const [showAlert, setShowAlert] = useState(false)
+ const linkBack = useRef(null)
const { t } = useTranslation('bpRatePage')
const dispatch = useDispatch()
const { producer, userRate, edenRate } = useSelector(
@@ -99,11 +97,12 @@ const BlockProducerRate = ({ account, ual }) => {
}
const handleSetLastTransactionId = (event, reason) => {
+ linkComponent()
setLastTransactionId(undefined)
- window.open(
- window.location.href.substring(0, window.location.href.length - 5),
- '_self'
- )
+ }
+
+ const linkComponent = () => {
+ linkBack.current.click()
}
useEffect(() => {
@@ -285,7 +284,7 @@ const BlockProducerRate = ({ account, ual }) => {
txSuccess: true
})
- setTimeout(handleSetLastTransactionId, 4000)
+ handleSetLastTransactionId()
} catch (err) {
setRatingState({
...ratingState,
@@ -410,20 +409,15 @@ const BlockProducerRate = ({ account, ual }) => {
{ratingState.txError}
-