fix: guard against falsy config
This commit is contained in:
parent
ac6046d74a
commit
17f39d8ea2
1 changed files with 4 additions and 3 deletions
|
|
@ -59,9 +59,10 @@ const SET_CASSETTE_BILLS = gql`
|
|||
const CashCassettes = ({ machine, config, refetchData }) => {
|
||||
const classes = useStyles()
|
||||
|
||||
const cashout = fromNamespace('cashOut')(config)
|
||||
const locale = fromNamespace('locale')(config)
|
||||
const fillingPercentageSettings = fromNamespace('notifications', config)
|
||||
const cashout = config && fromNamespace('cashOut')(config)
|
||||
const locale = config && fromNamespace('locale')(config)
|
||||
const fillingPercentageSettings =
|
||||
config && fromNamespace('notifications', config)
|
||||
const fiatCurrency = locale?.fiatCurrency
|
||||
|
||||
const getCashoutSettings = deviceId => fromNamespace(deviceId)(cashout)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue