mirror of
https://github.com/tornadocash/tornado-classic-ui
synced 2024-02-02 15:04:09 +01:00
fix: add support v5 relayer
This commit is contained in:
parent
6125b3b2af
commit
56a6835d80
@ -236,8 +236,14 @@ export const actions = {
|
||||
const hasEnabledLightProxy = rootGetters['application/hasEnabledLightProxy']
|
||||
|
||||
const getIsUpdated = () => {
|
||||
const relayerVersion = response.data.version
|
||||
|
||||
if (relayerVersion === '5.0.0') {
|
||||
return true
|
||||
}
|
||||
|
||||
const requiredMajor = hasEnabledLightProxy ? '5' : '4'
|
||||
const { major, patch, prerelease } = parseSemanticVersion(response.data.version)
|
||||
const { major, patch, prerelease } = parseSemanticVersion(relayerVersion)
|
||||
|
||||
const isUpdatedMajor = major === requiredMajor
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user