Skip to content

Commit

Permalink
fix: api not getting called due to user permission data not updated (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
gitanjli525 authored Oct 7, 2024
1 parent 06dae63 commit ad7d230
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/entryPoints/HyperSwitchApp.res
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ let make = () => {
try {
Window.connectorWasmInit()->ignore
let _ = await fetchPermissions()

// This needs to be removed
// TODO: change userPermissionJson type to option<permissionJson>
await HyperSwitchUtils.delay(2000)

switch url.path->urlPath {
| list{"unauthorized"} => RescriptReactRouter.push(appendDashboardPath(~url="/home"))
| _ => ()
Expand Down

0 comments on commit ad7d230

Please sign in to comment.