1
0
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:
EnzoVezzaro 2022-05-03 06:15:39 -04:00 committed by GitHub
parent 4fd310cf6e
commit 23f256b36c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
} }