fix(settings-dialog) On mobile open on the correct tab (#13443)

This commit is contained in:
Robert Pintilii
2023-06-12 13:55:32 +03:00
committed by GitHub
parent c8a87e368a
commit b77db024f5
3 changed files with 4 additions and 5 deletions

View File

@@ -187,7 +187,7 @@ const DialogWithTabs = ({
useEffect(() => {
if (isMobile) {
setSelectedTab(undefined);
setSelectedTab(defaultTab);
} else {
setSelectedTab(defaultTab ?? tabs[0].name);
}