Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 | 356x 1x 1x | import { t } from "i18next";
import { BackendErrorType } from "client/utils/api";
import { AppDispatch } from "client/types/reduxTypes";
import { store } from "client/utils/store";
import { removeError } from "client/views/admin/adminSlice";
export const resetNetworkError = (): void => {
const dispatch: AppDispatch = store.dispatch;
dispatch(removeError(t(BackendErrorType.NETWORK_ERROR)));
};
|