bigbuffet-rw/app/soapbox/reducers/meta.js

16 lines
368 B
JavaScript
Raw Normal View History

2020-03-27 13:59:38 -07:00
'use strict';
import { INSTANCE_FETCH_FAIL } from 'soapbox/actions/instance';
import { Map as ImmutableMap } from 'immutable';
2020-03-27 13:59:38 -07:00
const initialState = ImmutableMap();
2020-03-27 13:59:38 -07:00
export default function meta(state = initialState, action) {
switch(action.type) {
case INSTANCE_FETCH_FAIL:
return state.set('instance_fetch_failed', true);
2020-03-27 13:59:38 -07:00
default:
return state;
}
2021-08-03 12:22:51 -07:00
}