urbit-os, urbit-id: fix non-functional back button
commit49734bc8d9e05fc8d597d3b847bb581af1f8cd27
authorpkova <pyry.kovanen@gmail.com>
dateFri 16 Jul 2021, 23:06 (5 years ago)
parent5c31ee1
src/views/UrbitID.js+1−1
@@ -68,7 +68,7 @@ export default function UrbitID() {
6868 const lastCrumb = homeAction ? [{ text: humanizeName(last) }] : [];
6969
7070 return (
71− <View pop={router.pop} inset>
71+ <View pop={() => router.peek().key === NAMES.HOME ? history.pop() : router.pop()} inset>
7272 <NavHeader>
7373 <Crumbs
7474 routes={[
src/views/UrbitOS.js+1−1
@@ -40,7 +40,7 @@ export default function UrbitOS() {
4040 const [manualNetworkSeed, setManualNetworkSeed] = useState();
4141
4242 return (
43− <View pop={router.pop} inset>
43+ <View pop={() => router.peek().key === NAMES.HOME ? history.pop() : router.pop()} inset>
4444 <NavHeader>
4545 <Crumbs
4646 routes={[