Skip to content

Commit 4fee7b3

Browse files
chore(web): redirect-to-resolver-start-when-popup-close
1 parent 3347ca4 commit 4fee7b3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

web/src/components/Popup/index.tsx

+3
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,9 @@ const Popup: React.FC<PopupProps & IPopup> = ({
239239
const closePopup = () => {
240240
setIsOpen(false);
241241
resetValue();
242+
// dispute data is cleared, so if popup is closed the preview will show empty,
243+
// instead redirect to start point.
244+
if (popupType === PopupType.DISPUTE_CREATED) navigate("/resolver");
242245
};
243246

244247
return (

0 commit comments

Comments
 (0)