website refactor
This commit is contained in:
@@ -116,6 +116,7 @@ export class DriverService {
|
||||
if (result.isErr()) {
|
||||
throw new Error(result.unwrapErr().details.message);
|
||||
}
|
||||
await this.completeOnboardingPresenter!.present(result.unwrap());
|
||||
return this.completeOnboardingPresenter!.getResponseModel();
|
||||
}
|
||||
|
||||
@@ -132,6 +133,7 @@ export class DriverService {
|
||||
if (result.isErr()) {
|
||||
throw new Error(result.unwrapErr().details.message);
|
||||
}
|
||||
await this.driverRegistrationStatusPresenter!.present(result.unwrap());
|
||||
return this.driverRegistrationStatusPresenter!.getResponseModel();
|
||||
}
|
||||
|
||||
@@ -190,6 +192,7 @@ export class DriverService {
|
||||
if (result.isErr()) {
|
||||
throw new Error(result.unwrapErr().details.message);
|
||||
}
|
||||
await this.driverProfilePresenter!.present(result.unwrap());
|
||||
return this.driverProfilePresenter!.getResponseModel();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user