Skip to content

Commit

Permalink
Use constant for NOTIFICATION action
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonkopliku committed Feb 22, 2023
1 parent da3c56c commit c9e2e42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion assets/js/state/sagas/notifications.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import React from 'react';
import { takeEvery } from 'redux-saga/effects';
import { toast } from 'react-hot-toast';
import { NOTIFICATION } from '@state/actions/notifications';

export function* notification({ payload }) {
const { text, icon } = payload;
Expand All @@ -12,5 +13,5 @@ export function* notification({ payload }) {
}

export function* watchNotifications() {
yield takeEvery('NOTIFICATION', notification);
yield takeEvery(NOTIFICATION, notification);
}

0 comments on commit c9e2e42

Please sign in to comment.