This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Factory to generate payment streams | |
| const getPayments$ = () => { | |
| const isLoading$ = new BehaviorSubject<boolean>(false) | |
| const error$ = new Subject<ApiError | null>() | |
| // Stream that holds currently actie DB | |
| const db$ = activeDB$.pipe(map(mapDB<AgentDB>)) | |
| const baseCollection$ = db$.pipe( |