fix dialog not showing up (#87)

This commit is contained in:
aleka 2023-10-19 10:16:13 -04:00 committed by GitHub
parent 2a794f9459
commit 82d32a91a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -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 {

View File

@ -264,7 +264,6 @@ const Styled: Record<string, AnyStyledComponent> = {};
Styled.StatusCardsContainer = styled.div`
display: grid;
margin-top: 1rem;
gap: 1rem;
`;