Skip to content

Commit

Permalink
Revert "chore: redacted customers details page view" (#2162)
Browse files Browse the repository at this point in the history
  • Loading branch information
JeevaRamu0104 authored Jan 29, 2025
1 parent 1fbf666 commit a9d102f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/screens/Customers/ShowCustomers.res
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,8 @@ let make = (~id) => {
setScreenState(_ => PageLoaderWrapper.Success)
} catch {
| Exn.Error(e) =>
switch Exn.message(e) {
| Some(message) =>
if message->String.includes("IR_11") {
setScreenState(_ => Success)
} else {
setScreenState(_ => Error(message))
}
| None => setScreenState(_ => Error("Failed to Fetch!"))
}
let err = Exn.message(e)->Option.getOr("Failed to Fetch!")
setScreenState(_ => PageLoaderWrapper.Error(err))
}
}

Expand Down

0 comments on commit a9d102f

Please sign in to comment.