Skip to content

Commit 5139f4a

Browse files
author
Sven Anders Robbestad
committed
bruk opprinnelig dispatch-metode
1 parent bbe6219 commit 5139f4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const App = (props: any) => {
2222
const query = queryString.parse(props.location.search);
2323
if (query && query.tema) {
2424
const tema = query.tema.toString();
25-
dispatch({ type: 'TEMA_SET', value: tema });
25+
dispatch(setValgtTema(tema));
2626
getTemaObject(tema)
2727
.then(res => {
2828
const ytelse = query.ytelse ? String(query.ytelse) : res.value;

0 commit comments

Comments
 (0)