fix: overrides list default to empty list instead of undefined
This commit is contained in:
parent
0ac62139db
commit
44d63337fe
1 changed files with 1 additions and 1 deletions
|
|
@ -395,7 +395,7 @@ const createCommissions = (cryptoCode, deviceId, isDefault, config) => {
|
||||||
}
|
}
|
||||||
|
|
||||||
const getCommissions = (cryptoCode, deviceId, config) => {
|
const getCommissions = (cryptoCode, deviceId, config) => {
|
||||||
const overrides = R.prop('overrides', config)
|
const overrides = R.prop('overrides', config) ?? []
|
||||||
|
|
||||||
if (!overrides && R.isEmpty(overrides)) {
|
if (!overrides && R.isEmpty(overrides)) {
|
||||||
return createCommissions(cryptoCode, deviceId, true, config)
|
return createCommissions(cryptoCode, deviceId, true, config)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue