fix ethBalance typing, set it to only `string` type

This commit is contained in:
fernandomg 2020-07-14 08:39:48 -03:00
parent 8bdfdb906c
commit b709f7774a
3 changed files with 3 additions and 3 deletions

View File

@ -39,7 +39,7 @@ const StyledBlock = styled(Block)`
interface Props { interface Props {
safeName?: string safeName?: string
safeAddress: string safeAddress: string
ethBalance?: number | string ethBalance?: string
} }
const AddressInfo = ({ ethBalance, safeAddress, safeName }: Props): JSX.Element => { const AddressInfo = ({ ethBalance, safeAddress, safeName }: Props): JSX.Element => {

View File

@ -74,7 +74,7 @@ const isTxValid = (t: SafeAppTx): boolean => {
const confirmTransactions = ( const confirmTransactions = (
safeAddress: string, safeAddress: string,
safeName: string, safeName: string,
ethBalance: number | string, ethBalance: string,
nameApp: string, nameApp: string,
iconApp: string, iconApp: string,
txs: Array<SafeAppTx>, txs: Array<SafeAppTx>,

View File

@ -9,7 +9,7 @@ export type SafeRecordProps = {
name: string name: string
address: string address: string
threshold: number threshold: number
ethBalance: number | string ethBalance: string
owners: List<{ name: string; address: string }> owners: List<{ name: string; address: string }>
modules: List<[string, string]> | null modules: List<[string, string]> | null
activeTokens: Set<string> activeTokens: Set<string>