fix dialog not showing up (#87)
This commit is contained in:
parent
2a794f9459
commit
82d32a91a9
@ -24,6 +24,8 @@ export const dialogsSlice = createSlice({
|
||||
initialState,
|
||||
reducers: {
|
||||
openDialog: (state: DialogsState, action: PayloadAction<DialogInfo<DialogTypes>>) => {
|
||||
if (state.activeDialog?.type === action.payload.type) return;
|
||||
|
||||
if (state.activeDialog) {
|
||||
state.dialogQueue.push(action.payload);
|
||||
} else {
|
||||
|
||||
@ -264,7 +264,6 @@ const Styled: Record<string, AnyStyledComponent> = {};
|
||||
|
||||
Styled.StatusCardsContainer = styled.div`
|
||||
display: grid;
|
||||
margin-top: 1rem;
|
||||
gap: 1rem;
|
||||
`;
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user