diff --git a/src/entryPoints/HyperSwitchApp.res b/src/entryPoints/HyperSwitchApp.res index ad2293167..8d45654c0 100644 --- a/src/entryPoints/HyperSwitchApp.res +++ b/src/entryPoints/HyperSwitchApp.res @@ -65,6 +65,11 @@ let make = () => { try { Window.connectorWasmInit()->ignore let _ = await fetchPermissions() + + // This needs to be removed + // TODO: change userPermissionJson type to option + await HyperSwitchUtils.delay(2000) + switch url.path->urlPath { | list{"unauthorized"} => RescriptReactRouter.push(appendDashboardPath(~url="/home")) | _ => ()