Skip to content

Commit

Permalink
fixup! dapp: add exception to no connected token
Browse files Browse the repository at this point in the history
  • Loading branch information
weilbith committed Oct 27, 2021
1 parent 40af59a commit 69107db
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const {
[RouteNames.SELECT_TOKEN]: selectTokenRoute,
[RouteNames.SELECT_HUB]: selectHubRoute,
[RouteNames.OPEN_CHANNEL]: openChannelRoute,
[RouteNames.QUICK_PAY]: quickPayRoute,
...protectedRoutes
} = transformRouteConfigsToRoutes();

Expand Down Expand Up @@ -97,4 +98,10 @@ describe('redirectIfNoConnectedToken()', () => {
expect(redirectIfNoConnectedToken(route, store)).toBeUndefined();
});
});

test('do nothing if navigating to quick pay route', () => {
const store = createStore();

expect(redirectIfNoConnectedToken(quickPayRoute, store)).toBeUndefined();
});
});

0 comments on commit 69107db

Please sign in to comment.