fix(currency-slice): use new constant

This commit is contained in:
RadoslavDimchev 2024-04-19 17:25:20 +03:00 committed by Emil Ivanichkov
parent 3f50727277
commit 21bfa611da
1 changed files with 2 additions and 5 deletions

View File

@ -1,12 +1,9 @@
import { createSlice } from '@reduxjs/toolkit'
import { CURRENCIES } from '../../constants'
export type CurrencyType = keyof typeof CURRENCIES
import { INITIAL_CURRENCY } from '../../constants'
const currencySlice = createSlice({
name: 'currency',
initialState: Object.keys(CURRENCIES)[0],
initialState: INITIAL_CURRENCY,
reducers: {
setCurrency: (_, action) => {
return action.payload