We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0dcb507 + c057f26 commit 54303d6Copy full SHA for 54303d6
ts/state/selectors/modal.ts
@@ -117,7 +117,7 @@ export function useConversationSettingsModalIsStandalone() {
117
}
118
119
export function useModalStack() {
120
- return useSelector((state: StateType) => state.modals.modalStack);
+ return useSelector((state: StateType) => state.modals?.modalStack ?? []); // that [] is needed for the password window
121
122
123
export function useIsTopModal(modalId: ModalId) {
0 commit comments