forked from abner/for-legacy-web
fix(bottom nav): replace path instead of going back
This commit is contained in:
@@ -67,13 +67,13 @@ export default observer(() => {
|
||||
onClick={() => {
|
||||
if (settingsActive) {
|
||||
if (history.length > 0) {
|
||||
history.goBack();
|
||||
history.replace(layout.getLastPath());
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
const path = layout.getLastHomePath();
|
||||
if (path === "/friends") {
|
||||
if (path.startsWith("/friends")) {
|
||||
history.push("/");
|
||||
} else {
|
||||
history.push(path);
|
||||
|
||||
Reference in New Issue
Block a user