mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
added optional chaining to oceanConfig (#1380)
This commit is contained in:
parent
4fd310cf6e
commit
23f256b36c
@ -105,7 +105,7 @@ export default function FormEditMetadata({
|
|||||||
}
|
}
|
||||||
{...field}
|
{...field}
|
||||||
component={Input}
|
component={Input}
|
||||||
prefix={field.name === 'price' && oceanConfig.oceanTokenSymbol}
|
prefix={field.name === 'price' && oceanConfig?.oceanTokenSymbol}
|
||||||
onChange={(e: ChangeEvent<HTMLInputElement>) =>
|
onChange={(e: ChangeEvent<HTMLInputElement>) =>
|
||||||
handleFieldChange(e, field)
|
handleFieldChange(e, field)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user