refactor(management-tabs): simpler checking util funcs
This commit is contained in:
parent
8d0bc1af34
commit
e073990a72
|
@ -20,16 +20,9 @@ export type Validator = {
|
||||||
status: string
|
status: string
|
||||||
}
|
}
|
||||||
|
|
||||||
const isValidStatus = (validatorStatus: string, tabStatus: string) => {
|
const isValidStatus = (validatorStatus: string, tabStatus: string) =>
|
||||||
if (
|
|
||||||
validatorStatus === tabStatus ||
|
validatorStatus === tabStatus ||
|
||||||
tabStatus ===
|
tabStatus === VALIDATOR_TABS_MANAGEMENT[VALIDATOR_TABS_MANAGEMENT.length - 1]
|
||||||
VALIDATOR_TABS_MANAGEMENT[VALIDATOR_TABS_MANAGEMENT.length - 1]
|
|
||||||
) {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
|
||||||
|
|
||||||
const isValidNameOrAddress = (
|
const isValidNameOrAddress = (
|
||||||
validatorName: string,
|
validatorName: string,
|
||||||
|
|
Loading…
Reference in New Issue