refactor: remove unnecessary variable
This commit is contained in:
parent
a3a069f335
commit
8240d4d8dc
1 changed files with 2 additions and 3 deletions
|
|
@ -57,11 +57,10 @@ const SET_CASSETTE_BILLS = gql`
|
||||||
`
|
`
|
||||||
|
|
||||||
const CashCassettes = ({ machine, config, refetchData }) => {
|
const CashCassettes = ({ machine, config, refetchData }) => {
|
||||||
const data = { machine, config }
|
|
||||||
const classes = useStyles()
|
const classes = useStyles()
|
||||||
|
|
||||||
const cashout = data?.config && fromNamespace('cashOut')(data.config)
|
const cashout = fromNamespace('cashOut')(config)
|
||||||
const locale = data?.config && fromNamespace('locale')(data.config)
|
const locale = fromNamespace('locale')(config)
|
||||||
const fiatCurrency = locale?.fiatCurrency
|
const fiatCurrency = locale?.fiatCurrency
|
||||||
|
|
||||||
const getCashoutSettings = deviceId => fromNamespace(deviceId)(cashout)
|
const getCashoutSettings = deviceId => fromNamespace(deviceId)(cashout)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue