File tree Expand file tree Collapse file tree
src/server/services/account Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -194,7 +194,8 @@ export class AccountService {
194194
195195 t . afterCommit ( ( ) => {
196196 emit ( Broadcasts . RemovedSharedUser , account . toJSON ( ) ) ;
197- emitNet ( Broadcasts . RemovedSharedUser , user ?. getSource ( ) , account . toJSON ( ) ) ;
197+ if ( user ?. getSource ( ) )
198+ emitNet ( Broadcasts . RemovedSharedUser , user ?. getSource ( ) , account . toJSON ( ) ) ;
198199 } ) ;
199200
200201 t . commit ( ) ;
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ import { Heading6 } from '@components/ui/Typography/Headings';
1414import { GlobalSettingsProvider } from '@hooks/useGlobalSettings' ;
1515import { IPhoneSettings } from '@project-error/npwd-types' ;
1616import { BroadcastsWrapper } from '@hooks/useBroadcasts' ;
17+ import { MemoryRouter } from 'react-router-dom' ;
1718
1819const Container = styled . div `
1920 color: #fff;
@@ -62,10 +63,20 @@ const MobileApp = (props: MobileAppProps) => {
6263 < ThemeProvider theme = { theme } >
6364 < I18nextProvider i18n = { i18n } defaultNS = "pefcl" >
6465 < Container >
65- < React . Suspense fallback = { < LoadingFallback message = { i18n . t ( 'Fetching data ..' ) } /> } >
66- < MobileRoutes />
67- </ React . Suspense >
68- < MobileFooter />
66+ < MemoryRouter
67+ initialEntries = { [
68+ '/bank/dashboard' ,
69+ '/bank/accounts' ,
70+ '/bank/transfer' ,
71+ '/bank/invoices' ,
72+ ] }
73+ initialIndex = { 0 }
74+ >
75+ < React . Suspense fallback = { < LoadingFallback message = { i18n . t ( 'Fetching data ..' ) } /> } >
76+ < MobileRoutes />
77+ </ React . Suspense >
78+ < MobileFooter />
79+ </ MemoryRouter >
6980 </ Container >
7081
7182 { /* We don't need to show any fallback for the update component since it doesn't render anything anyway. */ }
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ const MobileRoutes = () => {
1212
1313 return (
1414 < >
15- < Route path = { `${ prefix } /` } exact component = { MobileDashboardView } />
1615 < Route path = { `${ prefix } /accounts` } component = { MobileAccountsView } />
1716 < Route path = { `${ prefix } /dashboard` } component = { MobileDashboardView } />
1817 < Route path = { `${ prefix } /transfer` } component = { MobileTransferView } />
You can’t perform that action at this time.
0 commit comments