Skip to content

Commit 5d22ddc

Browse files
Merge pull request #317 from Trendyol/credentials-error
chore: handle close popup first
2 parents 722f756 + 9ad091e commit 5d22ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gurubu-client/src/app/components/room/grooming-board/grooming-board-error-popup.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const GroomingBoardErrorPopup = ({ title, roomId }: IProps) => {
2424
};
2525

2626
const handleClick = () => {
27+
setShowErrorPopup(false);
2728
if(encounteredError.id === ENCOUTERED_ERROR_TYPE.CREDENTIALS_ERROR){
2829
handleRemoveUser();
2930
handleRoomJoin(userInfo.nickname, true, roomId, userInfo.lobby.isAdmin)
@@ -36,7 +37,6 @@ const GroomingBoardErrorPopup = ({ title, roomId }: IProps) => {
3637
roomID: roomId,
3738
lobby,
3839
});
39-
setShowErrorPopup(false);
4040
};
4141

4242
if (!showErrorPopup) {

0 commit comments

Comments
 (0)