mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-27 18:40:33 +00:00
fix(currency-slice): use new constant
This commit is contained in:
parent
3f50727277
commit
21bfa611da
@ -1,12 +1,9 @@
|
|||||||
import { createSlice } from '@reduxjs/toolkit'
|
import { createSlice } from '@reduxjs/toolkit'
|
||||||
|
import { INITIAL_CURRENCY } from '../../constants'
|
||||||
import { CURRENCIES } from '../../constants'
|
|
||||||
|
|
||||||
export type CurrencyType = keyof typeof CURRENCIES
|
|
||||||
|
|
||||||
const currencySlice = createSlice({
|
const currencySlice = createSlice({
|
||||||
name: 'currency',
|
name: 'currency',
|
||||||
initialState: Object.keys(CURRENCIES)[0],
|
initialState: INITIAL_CURRENCY,
|
||||||
reducers: {
|
reducers: {
|
||||||
setCurrency: (_, action) => {
|
setCurrency: (_, action) => {
|
||||||
return action.payload
|
return action.payload
|
||||||
|
Loading…
x
Reference in New Issue
Block a user