1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-06-28 16:47:52 +02: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}
component={Input}
prefix={field.name === 'price' && oceanConfig.oceanTokenSymbol}
prefix={field.name === 'price' && oceanConfig?.oceanTokenSymbol}
onChange={(e: ChangeEvent<HTMLInputElement>) =>
handleFieldChange(e, field)
}